OFFSET
0,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..200
FORMULA
a(n) = 2^(ceiling(log_2(3^n))) - 3^n.
MATHEMATICA
Table[2^Ceiling@ Log2@ # - # &[3^n], {n, 0, 26}] (* Michael De Vlieger, Sep 30 2017 *)
PROG
(PARI) { default(realprecision, 50); t=1/log(2); for (n=0, 200, write("b063003.txt", n, " ", 2^ceil(t*log(3^n)) - 3^n) ) } \\ Harry J. Smith, Aug 15 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jens Voß, Jul 02 2001
EXTENSIONS
More terms from Marc LeBrun, Jul 11 2001
STATUS
approved