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!)
A359092 a(n) is the index of the smallest n-gonal pyramidal number with binary weight n. 1
5, 4, 9, 5, 20, 9, 29, 18, 40, 61, 52, 77, 121, 85, 235, 165, 281, 393, 438, 586, 645, 884, 1997, 777, 1597, 3598, 4901, 4442, 8249, 4582, 10685, 5362, 28473, 23140, 41305, 41266, 67947, 82953, 101229, 151121, 236221, 257326, 385090, 254725, 713021, 669890 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,1
LINKS
Eric Weisstein's World of Mathematics, Pyramidal Number
MATHEMATICA
p[n_, k_] := k*(k + 1)*((n - 2)*k + 5 - n)/6; a[n_] := Module[{k = 1}, While[DigitCount[p[n, k], 2, 1] != n, k++]; k]; Array[a, 40, 3] (* Amiram Eldar, Dec 17 2022 *)
CROSSREFS
Sequence in context: A198609 A332794 A054508 * A110617 A371859 A234356
KEYWORD
nonn,base
AUTHOR
Ilya Gutkovskiy, Dec 16 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 29 09:10 EDT 2024. Contains 373833 sequences. (Running on oeis4.)