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

%I #4 Oct 30 2020 17:43:20

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

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

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

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

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

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

%Y Cf. A000567, A002828, A061336, A100878, A338479, A338480.

%K nonn

%O 1,2

%A _Ilya Gutkovskiy_, Oct 29 2020