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!)
A358932 a(n) is the smallest centered n-gonal number with binary weight n. 4
19, 85, 31, 469, 253, 2025, 5995, 4061, 15742, 48061, 8191, 220543, 384766, 3080161, 3272671, 6192631, 8385271, 31453021, 58159102, 249495467, 401469279, 268418041, 134193151, 2885548927, 1610563582, 8589393821, 33280753395, 83751780091, 171658174447 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,1
LINKS
Eric Weisstein's World of Mathematics, Centered Polygonal Number
EXAMPLE
31 is the smallest centered pentagonal number with binary weight 5 (31_10 = 11111_2), so a(5) = 31.
MATHEMATICA
c[n_, k_] := n*k*(k + 1)/2 + 1; a[n_] := Module[{k = 1, ck}, While[DigitCount[ck = c[n, k], 2, 1] != n, k++]; ck]; Array[a, 25, 3] (* Amiram Eldar, Dec 09 2022 *)
CROSSREFS
Sequence in context: A062639 A209369 A288749 * A039609 A063496 A027848
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 August 26 05:03 EDT 2024. Contains 375454 sequences. (Running on oeis4.)