OFFSET
1,3
COMMENTS
When writing gcd(a(n), a(n+1)) as u*a(n) + v*a(n+1) where u, v are minimal, the u's are all distinct.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program for A345872
EXAMPLE
The table A345415(n, k) begins:
n\k| 1 2 3 4
---+--------------
1| 0 1 1 1
2| 0 0 -1 1
2| 0 1 0 -1
2| 0 0 1 0
For n = 1:
- we can choose a(1) = 1.
For n = 2:
- we can choose a(2) = 1,
- A345415(a(1), a(2)) = 0.
For n = 3:
- a(3) must be different from 1,
- we can choose a(3) = 2,
- A345415(a(2), a(3)) = 1.
For n = 4:
- a(4) must be different from 1 and from 2,
- we can choose a(4) = 3.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jun 27 2021
STATUS
approved