OFFSET
1,3
COMMENTS
Every positive integer appears infinitely many times in A002487, hence the sequence is well defined.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
Rémy Sigrist, PARI program
FORMULA
a(2^k) = 2^(k-1) for any k > 0.
a(n) = 2 iff n belongs to A097581 \ {2}.
EXAMPLE
The first terms, alongside fusc(n) and the direction where to find the same value, are:
n a(n) fusc(n) dir
-- ---- ------- ---
1 1 1 +
2 1 1 -
3 3 2 +
4 2 1 -
5 2 3 +
6 3 2 -
7 2 3 -
8 4 1 -
9 6 4 +
10 3 3 -
11 2 5 +
12 6 2 -
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Dec 07 2022
STATUS
approved