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!)
A358931 a(n) is the smallest n-gonal pyramidal number with binary weight n. 5
35, 30, 405, 95, 6860, 765, 28855, 7923, 96760, 380091, 259064, 915915, 3845501, 1436415, 32471830, 11992255, 62904941, 182171613, 266182382, 670936891, 939382515, 2533347310, 30530860911, 1876688877, 16972115903, 201845686175, 529756691451, 409027868651, 2713039388125 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,1
LINKS
Eric Weisstein's World of Mathematics, Pyramidal Number
EXAMPLE
405 is the smallest pentagonal pyramidal number with binary weight 5 (405_10 = 110010101_2), so a(5) = 405.
MATHEMATICA
p[n_, k_] := k*(k + 1)*((n - 2)*k + 5 - n)/6; a[n_] := Module[{k = 1, pk}, While[DigitCount[pk = p[n, k], 2, 1] != n, k++]; pk]; Array[a, 30, 3] (* Amiram Eldar, Dec 09 2022 *)
CROSSREFS
Sequence in context: A174027 A259083 A244214 * A267077 A267394 A022991
KEYWORD
nonn,base
AUTHOR
Ilya Gutkovskiy, Dec 06 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 May 21 08:56 EDT 2024. Contains 372733 sequences. (Running on oeis4.)