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

 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 Table of n, a(n) for n=3..48. 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 Cf. A007953, A051885, A062685, A062688, A358930. Sequence in context: A293727 A077528 A329254 * A183296 A138928 A116587 Adjacent sequences: A359000 A359001 A359002 * A359004 A359005 A359006 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.

Last modified August 15 12:04 EDT 2024. Contains 375173 sequences. (Running on oeis4.)