cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A359092 a(n) is the index of the smallest n-gonal pyramidal number with binary weight n.

This page as a plain text file.
%I A359092 #7 Feb 16 2025 08:34:04
%S A359092 5,4,9,5,20,9,29,18,40,61,52,77,121,85,235,165,281,393,438,586,645,
%T A359092 884,1997,777,1597,3598,4901,4442,8249,4582,10685,5362,28473,23140,
%U A359092 41305,41266,67947,82953,101229,151121,236221,257326,385090,254725,713021,669890
%N A359092 a(n) is the index of the smallest n-gonal pyramidal number with binary weight n.
%H A359092 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PyramidalNumber.html">Pyramidal Number</a>
%H A359092 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%t A359092 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 *)
%Y A359092 Cf. A000120, A358931, A359091.
%K A359092 nonn,base
%O A359092 3,1
%A A359092 _Ilya Gutkovskiy_, Dec 16 2022