login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Least number of heptagonal numbers needed to represent n.
4

%I #5 Oct 30 2020 17:43:13

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

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

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

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

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

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

%Y Cf. A000566, A002828, A061336, A100878, A338479, A338481.

%K nonn

%O 1,2

%A _Ilya Gutkovskiy_, Oct 29 2020