OFFSET
0,3
COMMENTS
Term corresponding to m^2 is m^2.
EXAMPLE
6 can be the Least significant digit of a square and 16 is the least square ending in 6 hence term corresponding to 6 is 16 which also corresponds to 16. There are no squares ending in 2,3,7,8,10,11,12,13,14,15, etc.
MAPLE
isSquEnd := proc(n) local ldp10, i ; ldp10 := 10^nops(convert(n, base, 10)) ; for i from 0 to ldp10-1 do if ( i^2) mod ldp10 = n then RETURN(true) ; fi ; od; RETURN(false) ; end: A111446 := proc(n) option remember ; local k, ldp10, c ; if n = 0 then RETURN([0, 0]) ; else k := 1+op(2, A111446(n-1)) ; while not isSquEnd(k) do k := k+1 ; od ; ldp10 := 10^nops(convert(k, base, 10)) ; for c from 1 do if ( c^2 mod ldp10 ) = k then RETURN([c^2, k]) ; fi ; od: fi ; end: seq( op(1, A111446(n)), n=0..80) ; # R. J. Mathar, Feb 08 2008
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 03 2005
EXTENSIONS
More terms from Keith Schneider (schneidk(AT)email.unc.edu), Dec 13 2007
More terms from R. J. Mathar, Feb 08 2008
STATUS
approved