0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

整数数学A「2022年一橋大学後期第1問 log y (6x+y)=x」をWolframAlphaとsympy でやってみた。

Last updated at Posted at 2022-04-25

オリジナル
探しています。

問題と解答

logの絡んだ整数問題です。<

wolframalphaで

Integer solutions
x = 2, y = 4
x = 5, y = 2

wolframalphaのover the integersで結果がでませんでした。

Try the following:
Use different phrasing or notations
Enter whole words instead of abbreviations
Avoid mixing mathematical and other notations
Check your spelling
Give your input in English
Other tips for using Wolfram|Alpha

SymPy Liveで(Pycharmでも)

以下サイトに、ソースコードを貼り付けて、Evaluateです。

問題点:nMaxに根拠をつけたい。答えを見てから投稿しました。

# log y (6x+y)=x
from sympy import *
nMax=100
for i in range(1,nMax):
    for j in range(1,nMax):
        if log(6*i+j,j) ==i:
            print("#",i,j)
# 2 4
# 5 2

感想

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?