login
A135251
Maximal number of zero digits in square of number with n digits not divisible by 10.
1
0, 1, 3, 4, 6, 8, 10
OFFSET
1,3
MATHEMATICA
(*For a(7)*) mx = 0; Do[Do[Do[Do[Do[Do[Do[k = 10^6b + 10^5q + 10^4r + 10^3p + 10^2s + 10n + m; w = IntegerDigits[k^2]; ile = 0; Do[If[w[[t]] == 0, ile = ile + 1; If[ile > mx, mx = ile]], {t, 1, Length[w]}], {m, 1, 9}], {n, 0, 9}], {s, 0, 9}], {p, 0, 9}], {r, 0, 9}], {q, 0, 9}], {b, 1, 9}]; mx
KEYWORD
base,nonn
AUTHOR
Artur Jasinski, Nov 24 2007
STATUS
approved