login
Least number of hexagonal numbers needed to represent n.
3

%I #6 Feb 16 2025 08:34:00

%S 1,2,3,4,5,1,2,3,4,5,6,2,3,4,1,2,3,3,4,5,2,3,4,4,5,6,3,1,2,2,3,4,4,2,

%T 3,3,4,5,5,3,4,4,2,3,1,2,3,4,3,4,2,3,4,5,4,2,3,3,4,2,3,3,4,4,5,1,2,3,

%U 4,5,3,2,2,3,3,4,4,3,3,4,2,3,4,3,4,4,3,3,4,2,1,2,3,2,3,3,2,3,4,3,3

%N Least number of hexagonal numbers needed to represent n.

%H Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/HexagonalNumber.html">Hexagonal Number</a>

%H <a href="/index/Pol#polygonal_numbers">Index to sequences related to polygonal numbers</a>

%Y Cf. A000384, A002828, A061336, A100878, A234533, A338480, A338481.

%K nonn,changed

%O 1,2

%A _Ilya Gutkovskiy_, Oct 29 2020