OFFSET
0,3
COMMENTS
The graphs of p(n), q(n) are fractals; the graph of p(n)+q(n) is SierpiĆski-like.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
EXAMPLE
Example: 14=27-13=3^3 -(3^0+3^1+3^2), 16=28-12=3^3+3^0 -(3^1+3^2), 20=30-10=3^3+3^1 -(3^0+3^2); 27+13=28+12=30+10=40; 10,12,13, 27, 28, 30 are written without 2 in base 3.
PROG
(Haskell)
a060372 n = (a060374 n + n) `div` 2 -- Reinhard Zumkeller, Jun 09 2012
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
Claude Lenormand (claude.lenormand(AT)free.fr), Apr 02 2001
STATUS
approved