Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A121470
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A121470 Let M = [{0, 1}, {-1, 2}]; v[1] = {1, 7}; w[n] = {0, 3} if n is even, otherwise {0, 6}. Let v[n] = M.v[n - 1] + w[n]; then a(n) = v[n][[1]]. +0
2
1, 7, 16, 31, 49, 73, 100, 133, 169, 211, 256, 307, 361, 421, 484, 553, 625, 703, 784, 871, 961, 1057, 1156, 1261, 1369, 1483, 1600, 1723, 1849, 1981, 2116, 2257, 2401, 2551, 2704, 2863, 3025, 3193, 3364, 3541, 3721, 3907, 4096, 4291, 4489, 4693, 4900 (list; graph; listen)
OFFSET

1,2

MAPLE

A121410 := proc(nmin) local M, a, v, wev, wod, n ; a := [] ; M := linalg[matrix](2, 2, [0, 1, -1, 2]) ; v := linalg[vector](2, [1, 7]) ; wev := linalg[vector](2, [0, 3]) ; wod := linalg[vector](2, [0, 6]) ; while nops(a) < nmin do a := [op(a), v[1]] ; n := nops(a)+1 ; v := evalm(M &* v) ; if n mod 2 = 0 then v := evalm(v+wev) ; else v := evalm(v+wod) ; fi ; od: RETURN(a) ; end: A121410(80) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Sep 18 2007

MATHEMATICA

M := {{0, 1}, {-1, 2} } v[1] = {1, 7} w[n_] = If[Mod[n, 2] == 0, {0, 3}, {0, 6}] v[n_] := v[n] = M.v[n - 1] + w[n] a = Table[v[n][[1]], {n, 1, 30}]

CROSSREFS

Cf. A003215, A005448.

Sequence in context: A133694 A024627 A140511 this_sequence A019541 A036834 A020941

Adjacent sequences: A121467 A121468 A121469 this_sequence A121471 A121472 A121473

KEYWORD

nonn

AUTHOR

Roger Bagula (rlbagulatftn(AT)yahoo.com), Sep 07 2006

EXTENSIONS

Edited by njas, Sep 16 2006

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Sep 18 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 July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research