2010-10-08から1日間の記事一覧
正の整数 n に対し, f(n) を, n の倍数であり 10 進数で表すと 2 以下の数字のみが用いられる最小の数と定義する.ゆえに, f(2)=2, f(3)=12, f(7)=21, f(42)=210, f(89)=1121222 である.また, である. を求めよ. #pragma comment(lib,"mpir.lib") #include <iostream> #</iostream>…
正の整数 n に対し, f(n) を, n の倍数であり 10 進数で表すと 2 以下の数字のみが用いられる最小の数と定義する.ゆえに, f(2)=2, f(3)=12, f(7)=21, f(42)=210, f(89)=1121222 である.また, である. を求めよ. #pragma comment(lib,"mpir.lib") #include <iostream> #</iostream>…