OFFSET
1,4
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Line plot of the first 10000 terms
Rémy Sigrist, PARI program for A317018
Eric Weisstein's World of Mathematics, Negabinary.
Wikipedia, Negative base.
EXAMPLE
The first terms, alongside their negabinary representation, are:
n a(n) nega(a(n))
-- ---- ----------
1 0 0
2 1 1
3 -1 11
4 -2 10
5 2 110
6 3 111
7 5 101
8 -3 1101
9 -4 1100
10 4 100
11 20 10100
12 12 11100
13 8 11000
14 6 11010
15 7 11011
16 9 11001
17 -7 1001
18 -8 1000
19 -10 1010
20 -6 1110
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Jul 19 2018
STATUS
approved