OFFSET
1,1
FORMULA
Empirical g.f.: -x*(90*x^17 -100*x^16 +90*x^15 -100*x^14 +90*x^13 -100*x^12 +90*x^11 -100*x^10 +90*x^9 -19*x^8 +10*x^7 -19*x^6 +10*x^5 -19*x^4 +10*x^3 -19*x^2 +10*x -19) / ((x -1)*(x^2 -x +1)*(x^6 -x^3 +1)*(10*x^9 -1)). - Colin Barker, Jun 17 2014
EXAMPLE
For 19 we have (1+9) mod 10 = 10 mod 10 = 0 and (9+1) mod 10 = 10 mod 10 = 0.
All the terms are created by concatenating the elements of the following sets of digits only with themselves: {1,9}, {2,8}, {3,7}, {4,6}, {5}.
MAPLE
P:=proc(q) local a, b, c, j, n;
for n from 10 to q do a:=[]; b:=n; while b>0 do a:=[b mod 10, op(a)];
b:=trunc(b/10); od; b:=0; c:=0; b:=(c[nops(c)]+c[1]) mod 10;
for j from 1 to nops(a)-1 do c:=c*10+((a[j]+a[j+1]) mod 10); od; c:=c*10+b;
if c=0 then print(n); fi; od; end: P(10^10);
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Paolo P. Lava, Jun 17 2014
STATUS
approved