OFFSET
1,4
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
Rémy Sigrist, PARI program
Rémy Sigrist, Scatterplot of the first 2^20 terms
EXAMPLE
Table begins:
1,
1,
1, 2,
1, 2, 3, 4,
1, 2, 3, 4, 5, 6, 8, 7,
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 7, 11, 14, 13, 16,
...
For n = 6:
the terms in rows 1..5 are: 1, 1, 1, 2, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 8, 7,
- terms with odd part 1 are at positions: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15,
- terms with odd part 3 are at positions: 7, 11, 14,
- terms with odd part 5 are at positions: 13,
- terms with odd part 7 are at positions: 16,
- so row 6 is: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 7, 11, 14, 13, 16.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Rémy Sigrist, Oct 30 2022
STATUS
approved