OFFSET
1,2
COMMENTS
1454 is in the list because its digital sum is 1+4+5+4 = 14 and "14" is a substring of 1454 and of 1454^2 = 2114116
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..2500
MATHEMATICA
sdssQ[n_]:=Module[{idn1=IntegerDigits[n], idn2=IntegerDigits[n^2], idnt}, idnt= IntegerDigits[ Total[idn1]]; SequenceCount[idn1, idnt]>0 && SequenceCount[idn2, idnt]>0]; Select[Range[10000], sdssQ] (* The program uses the SequenceCount function from Mathematica version 10 *) (* Harvey P. Dale, Jul 29 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jun 24 2009
STATUS
approved