OFFSET
1,2
COMMENTS
See A302839 for a sequence with digital sums instead of alternate digital sums.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Colored scatterplot of the first 25000 terms (where the color is function of A065368(a(n)))
Rémy Sigrist, PARI program for A302840
EXAMPLE
The first terms, alongside their alternate digital sums in bases 2 and 3, are:
n a(n) s2(a(n) s3(a(n))
-- ---- ------- --------
1 1 1 1
2 2 -1 2
3 3 0 -1
4 4 1 0
5 5 2 1
6 10 -2 2
7 6 0 -2
8 8 -1 0
9 7 1 -1
10 9 0 1
11 11 -1 3
12 12 0 0
13 13 1 1
14 14 -1 2
15 15 0 -1
16 16 1 0
17 17 2 1
18 18 0 2
19 19 1 3
20 20 2 4
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 14 2018
STATUS
approved