Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A102877
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A102877 a(0) = 1, a(1) = 1; for n>0, a(2n) = 3a(2n-1), a(2n+1) = 3a(2n) - 2a(n-1). +0
2
1, 1, 3, 7, 21, 61, 183, 543, 1629, 4873, 14619, 43815, 131445, 394213, 1182639, 3547551, 10642653, 31926873, 95780619, 287338599, 862015797, 2586037645, 7758112935, 23274309567, 69822928701, 209468698473, 628406095419 (list; graph; listen)
OFFSET

0,3

COMMENT

The sequence of first differences of these numbers (2, 4, 14, 40 ...), divided by 2, is (1, 2, 7, 20, ...) - see A111017. This is close to the original sequence.

..... 1, 1, 3, 7, 21, 61, 183, 543, 1629, 4873, 14619

........ 1, 2, 7, 20, 61, 180, 543, 1622, 4873, 14598

....... 2=3-1, 20=21-1, 180=183-3, 1622=1629-7, 14598=14619-21

MATHEMATICA

a[0]:=1; a[1]:=1; a[n_]:=If[EvenQ[n], 3*a[n-1], 3*a[n-1]-2*a[(n-3)/2]]; Table[a[i], {i, 0, 50}] - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), May 22 2007

PROGRAM

(PARI) {m=26; v=vector(m+1); v[1]=1; v[2]=1; for(n=2, m, k=3*v[n]; if(n%2==1, k=k-2*v[(n-1)/2]); v[n+1]=k); print(v)} /* Klaus Brockhaus, May 20 2007 */

CROSSREFS

This sequence is connected with A129770 and A129772.

Adjacent sequences: A102874 A102875 A102876 this_sequence A102878 A102879 A102880

Sequence in context: A035080 A091486 A056779 this_sequence A122983 A005355 A025235

KEYWORD

nonn

AUTHOR

Paul Curtz (bpcrtz(AT)free.fr), May 16 2007

EXTENSIONS

More terms from Klaus Brockhaus (klaus-brockhaus(AT)t-online.de) and Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), May 20 2007

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 October 6 12:54 EDT 2008. Contains 144667 sequences.


AT&T Labs Research