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!)
A359003 a(n) is the smallest n-gonal number whose sum of digits is n. 1
3, 4, 5, 6, 7, 8, 9, 370, 506, 156, 238, 671, 726, 88, 836, 585, 775, 7337, 5268, 8149, 8555, 8961, 9367, 9773, 15786, 9856, 91964, 65757, 89428, 179960, 47796, 108979, 197945, 86976, 467974, 998516, 259896, 598792, 1737788, 869649, 969991, 1985984, 998676, 3798496, 7979546, 5877696 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,1
LINKS
Eric Weisstein's World of Mathematics, Polygonal Number
EXAMPLE
370 is the smallest 10-gonal number with digit sum 10, so a(10) = 370.
MATHEMATICA
p[n_, k_] := (n - 2)*k*(k - 1)/2 + k; a[n_] := Module[{k = 1, pk}, While[Plus @@ IntegerDigits[pk = p[n, k]] != n, k++]; pk]; Array[a, 45, 3] (* Amiram Eldar, Dec 10 2022 *)
CROSSREFS
Sequence in context: A293727 A077528 A329254 * A183296 A138928 A116587
KEYWORD
nonn,base
AUTHOR
Ilya Gutkovskiy, Dec 10 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 June 11 06:21 EDT 2024. Contains 373289 sequences. (Running on oeis4.)