OFFSET
0,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..10028
FORMULA
EXAMPLE
This can be viewed as an irregular table, where after 0, each row has A260734(n) = 1, 2, 2, 4, 4, 5, 5, 7, ... terms:
0;
3;
8, 6;
15, 11;
24, 21, 18, 16;
35, 32, 30, 27;
48, 45, 43, 40, 38;
63, 59, 56, 53, 51;
80, 78, 75, 72, 70, 67, 64;
99, 96, 93, 90, 88, 85, 83;
120, 117, 115, 112, 108, 105, 102;
...
Each row begins with (n^2)-1 (see A005563), and each successive term is obtained by subtracting A002828(k) from the previous term k, until ((n-1)^2)-1 would be encountered, which is not listed second time (as it already occurs as the first term of the previous row), but instead, the current row is finished and the next row is started with the term ((n+1)^2)-1.
PROG
CROSSREFS
Used to construct A276573.
KEYWORD
nonn,tabf
AUTHOR
Antti Karttunen, Sep 07 2016
EXTENSIONS
Example section added and the formula rewritten to a simpler form (which is now correct) - Antti Karttunen, Oct 16 2016
STATUS
approved