OFFSET
1,3
COMMENTS
LINKS
Paul Tek, Table of n, a(n) for n = 1..10000
EXAMPLE
After we have the first 11 terms, 1,0,2,0,0,0,5,6,4,0,5, the next number x must be chosen so that 102000564050 + x is divisible by 12; this implies that x = 10.
MAPLE
M:=80; a[1]:=1; N:=1;
for n from 2 to M do
N:=10*N; t2:=N mod n;
if t2 = 0 then a[n]:=0; else a[n]:=n-t2; fi;
N:=N+a[n]; od: [seq(a[n], n=1..M)];
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 08 2009
STATUS
approved