OFFSET
0,3
COMMENTS
Base 4 representation for n converted from base -4 to base 10.
LINKS
Dana G. Korssjoen, Biyao Li, Stefan Steinerberger, Raghavendra Tripathi, and Ruimin Zhang, Finding structure in sequences of real numbers via graph theory: a problem list, arXiv:2012.04625 [math.CO], 2020-2021.
FORMULA
a(4*k+m) = -4*a(k)+m for 0 <= m < 4. - Chai Wah Wu, Jan 16 2020
MATHEMATICA
f[n_Integer, b_Integer] := Block[{l = IntegerDigits[n]}, Sum[l[[ -i]]*(-b)^(i - 1), {i, 1, Length[l]}]]; a = Table[ FromDigits[ IntegerDigits[n, 4]], {n, 0, 80}]; b = {}; Do[b = Append[b, f[a[[n]], 4]], {n, 1, 80}]; b
PROG
(PARI) a(n) = subst(Pol(digits(n, 4)), x, -4); \\ Michel Marcus, Jan 30 2019
CROSSREFS
KEYWORD
base,easy,sign
AUTHOR
Robert G. Wilson v, Aug 12 2002
STATUS
approved