OFFSET
1,3
COMMENTS
The value 1 appears twice; for any v > 1, v appears v times.
This sequence shares graphical features with A335943.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program
EXAMPLE
The first terms, alongside the corresponding pairs, are:
n a(n) (a(n) mod a(n+1), a(n+1))
-- ---- -------------------------
1 1 (0, 1)
2 1 (1, 2)
3 2 (0, 2)
4 2 (2, 3)
5 3 (0, 3)
6 3 (3, 4)
7 4 (1, 3)
8 3 (3, 5)
9 5 (1, 4)
10 4 (0, 4)
11 4 (4, 5)
12 5 (0, 5)
13 5 (5, 6)
14 6 (2, 4)
15 4 (4, 6)
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jul 30 2024
STATUS
approved