OFFSET
1,1
COMMENTS
The sequence is infinite.
LINKS
Shyam Sunder Gupta, Table of n, a(n) for n = 1..1000
EXAMPLE
There are ten one-digit numbers divisible by 1 so a(1)=10.
For two-digit numbers, the second digit must make it divisible by 2^2, which gives 22 numbers: 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96 to satisfy the requirement. So a(2)=22.
MATHEMATICA
a = Table[j, {j, 0, 9}]; r = 2; s2 = 10; t = a; xs = {s2}; While[! a == {} , n = Length[a]; k = 1; b = {}; While[! k > n , z0 = a[[k]]; Do[z = 10^(r - 1)*j + z0; If[Mod[z, r*r] == 0 && r < 111, b = Append[b, z]; t = Append[t, z]], {j, 0, 9}]; k++]; s = Union[t]; s1 = Length[s]; If[r < 111, xs = Append[xs, s1 - s2]]; s2 = s1; a = b; r++]; xs
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Shyam Sunder Gupta, Aug 08 2013
STATUS
approved