Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A063005
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A063005 Difference between 2^n and the next smaller power of 3. +0
4
0, 1, 1, 5, 7, 5, 37, 47, 13, 269, 295, 1319, 1909, 1631, 9823, 13085, 6487, 72023, 84997, 347141, 517135, 502829, 2599981, 3605639, 2428309, 19205525, 24062143, 5077565, 139295293, 149450423, 686321335, 985222181, 808182895, 5103150191 (list; graph; listen)
OFFSET

0,4

COMMENT

Sequence generalized : a(n) = A^n - B^(floor(log_B (A^n))) where A, B are integers. This sequence has A = 2, B = 3; A056577 has A = 3, B = 2. - Ctibor O. Zizka (ctibor.zizka(AT)seznam.cz), Mar 03 2008

FORMULA

a(n) = 2^n - 3^(floor (log_3 (2^n)))

PROGRAM

(PARI) for(n=0, 50, print1(2^n-3^floor(log(2^n)/log(3))", "))

CROSSREFS

Cf. A056577, A063003, A063004.

Sequence in context: A121595 A125294 A139428 this_sequence A145577 A144478 A059249

Adjacent sequences: A063002 A063003 A063004 this_sequence A063006 A063007 A063008

KEYWORD

easy,nonn

AUTHOR

Jens Voss (jens.voss(AT)poet.de), Jul 02 2001

EXTENSIONS

More terms from Ralf Stephan (ralf(AT)ark.in-berlin.de), Mar 20 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research