OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_] := Block[ {d = Reverse[ IntegerDigits[ n]], k = l = 1, s = 0}, l = Length[d]; While[ k <= l, s = s - (-1)^k*d[[k]]; k++ ]; Return[s]]; Select[ Range[10^3], f[ #^2] == 0 & ]
Select[Range[1000], Total[Times@@@Partition[Riffle[IntegerDigits[#^2], {1, -1}, {2, -1, 2}], 2]]==0&] (* Harvey P. Dale, Dec 19 2021 *)
PROG
(PARI) SumAD(x)= { local(a=1, s=0); while (x>9, s+=a*(x-10*(x\10)); x\=10; a=-a); return(s + a*x) } { n=0; for (m=1, 10^9, if (SumAD(m^2) == 0, write("b065816.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 31 2009
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Dec 06 2001
STATUS
approved