The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A369953 a(n) is the least integer k such that the sum of the digits of k^2 is 9*n. 3
0, 3, 24, 63, 264, 1374, 3114, 8937, 60663, 94863, 545793, 1989417, 5477133, 20736417, 82395387, 260191833, 706399164, 2428989417, 9380293167, 28105157886, 99497231067, 538479339417, 1974763271886, 4472135831667, 14106593458167, 62441868958167, 244744764757083, 836594274358167 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
3|a(n).
LINKS
Zhining Yang, Table of n, a(n) for n = 0..40 (terms 19..40 from Zhao Hui Du)
FORMULA
a(n) = A067179(4n).
EXAMPLE
a(3)=63 because k=63 is the least integer k such that the sum of the digits of k^2 = 3969 is 9*3 = 27 (3+9+6+9 = 27).
MATHEMATICA
n=1; lst={}; For[k=0, k<10^8, k+=3, If[Total[IntegerDigits[k^2]]==9*n, AppendTo[lst, k]; n++]]; lst
PROG
(Python)
n=1
lst=[]
for k in range(0, 10**8, 3):
if sum(int(d) for d in str(k*k))==9*n:
lst.append(k)
n=n+1
print(lst)
(PARI) a(n) = my(k=0); while(sumdigits(k^2) != 9*n, k+=3); k; \\ Michel Marcus, Feb 17 2024
CROSSREFS
Sequence in context: A070734 A009113 A152751 * A162654 A092468 A347108
KEYWORD
nonn,base
AUTHOR
Zhining Yang, Feb 06 2024
EXTENSIONS
a(19)-a(27) from Zhao Hui Du, Feb 09 2024
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 May 18 13:50 EDT 2024. Contains 372630 sequences. (Running on oeis4.)