OFFSET
1,2
MATHEMATICA
Do[l = Floor[N[Log[10, n], 24]] + 1; If[Mod[n^2, 10^l] == Mod[n^3, 10^l], Print[n]], {n, 1, 5000}]
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Robert G. Wilson v, Jul 25 2000
STATUS
approved