The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A063004 Difference between 2^n and the next larger power of 3. 2
 0, 1, 5, 1, 11, 49, 17, 115, 473, 217, 1163, 139, 2465, 11491, 3299, 26281, 111611, 46075, 269297, 7153, 545747, 2685817, 588665, 5960299, 26269505, 9492289, 62031299, 253202761, 118985033, 625390555, 88519643, 1339300753 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 LINKS FORMULA a(n) = 3^ceiling(log_3(2^n)) - 2^n. MATHEMATICA dp23[n_]:=Module[{t=2^n}, 3^Ceiling[Log[3, t]]-t]; Array[dp23, 40, 0] (* Harvey P. Dale, Nov 20 2015 *) PROG (PARI) for(n=1, 50, print1(3^ceil(log(2^n)/log(3))-2^n", ")) CROSSREFS Cf. A056577, A063003, A063005. Sequence in context: A132000 A132001 A113261 * A146993 A343223 A104572 Adjacent sequences:  A063001 A063002 A063003 * A063005 A063006 A063007 KEYWORD easy,nonn AUTHOR Jens Voß, Jul 02 2001 EXTENSIONS More terms from Ralf Stephan, Mar 21 2003 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified April 18 03:09 EDT 2021. Contains 343072 sequences. (Running on oeis4.)