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!)
A359245 The smallest square with exactly n circular loops (or holes) in its decimal expansion (A064532). 0
1, 0, 81, 289, 1089, 8836, 6889, 80089, 688900, 1868689, 8508889, 29888089, 288898009, 983888689, 3808988089, 8680089889, 86908808809, 488088068689, 878686888689, 2888986888804, 48890888808804, 108506888888896, 88869893888889, 880881089888881, 788088668888889 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
The digit 8 has two loops, the digits 0, 6 and 9 have one loop, and other digits (including 4) have no hole.
Least square k such that A064532(k) = n.
LINKS
EXAMPLE
a(3) = 289 because 8 has two loops and 9 has one loop for a total of 3, and 289 is the smallest such square.
PROG
(PARI) a(n) = { for (k=0, oo, my (d=digits(k^2)); if (n==(k==0)+sum(i=1, #d, [1, 0, 0, 0, 0, 0, 1, 0, 2, 1][1+d[i]]), return (k^2))) } \\ Rémy Sigrist, Dec 22 2022
CROSSREFS
Cf. A064532.
Similar: A331898 (primes), A337842 (palindromes).
Sequence in context: A237375 A237368 A017078 * A236055 A236048 A235954
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Dec 22 2022
EXTENSIONS
More terms from Rémy Sigrist, Dec 22 2022
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 September 17 18:39 EDT 2024. Contains 375990 sequences. (Running on oeis4.)