login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A052062 Squares containing no palindromic substring except single digits. 7
0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 169, 196, 256, 289, 324, 361, 529, 576, 625, 729, 784, 841, 961, 1024, 1089, 1296, 1369, 1521, 1681, 1764, 1849, 1936, 2304, 2401, 2601, 2704, 2809, 2916, 3025, 3249, 3481, 3721, 4096, 4356, 4624, 4761, 5041, 5184, 5329 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Leading zeros in substring allowed so 103^2 = 10609 is rejected because 1{060}9 contains a palindromic substring.
A comment in A052061 suggests that this sequence is infinite.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..10000
EXAMPLE
2304 (= 48^2) -> substrings 23, 30, 04, 230, 304 and 2304 are all non-palindromic.
PROG
(PARI) noPalSub(n)={my(d); local(digit); digit=eval(Vec(Str(n))); d = #digit; for(len=2, d, for(i=1, d-len+1, if(isPalSub(i, len), return(0)))); 1}; isPalSub(start, len)={my(b=start-1, e=start+len); for(j=1, len>>1, if(digit[b+j] != digit[e-j], return(0))); 1}; n=0; for(n=0, 1e4, if(noPalSub(n^2), print1(n^2", ")))
CROSSREFS
Sequence in context: A016073 A115743 A014186 * A052046 A078255 A077356
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Jan 15 2000
EXTENSIONS
Program and b-file from Charles R Greathouse IV, Sep 09 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 13:11 EDT 2024. Contains 371913 sequences. (Running on oeis4.)