|
Search: id:A077383
|
|
|
| A077383 |
|
a(1) = 1, then add, multiply and subtract 2, 3, 4; 5, 6, 7; ... in that order. |
|
+0 2
|
|
| 1, 3, 9, 5, 10, 60, 53, 61, 549, 539, 550, 6600, 6587, 6601, 99015, 98999, 99016, 1782288, 1782269, 1782289, 37428069, 37428047, 37428070, 898273680, 898273655, 898273681, 24253389387, 24253389359, 24253389388, 727601681640, 727601681609
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
EXAMPLE
|
a(2) = a(1) + 2 = 3, a(3) = 3*3 = 9, a(4) = 9-4 = 5, a(5) = 5 + 5 = 10, etc.
|
|
MAPLE
|
a := proc(n) if n=1 then 1 elif n mod 3 = 2 then a(n-1)+n elif n mod 3 = 0 then n*a(n-1) elif n mod 3 = 1 then a(n-1)-n else fi end: (from Emeric Deutsch)
|
|
CROSSREFS
|
Cf. A077382, A077384.
Sequence in context: A010633 A096418 A100811 this_sequence A084492 A084496 A084530
Adjacent sequences: A077380 A077381 A077382 this_sequence A077384 A077385 A077386
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Nov 06 2002
|
|
EXTENSIONS
|
More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Dec 17 2003
|
|
|
Search completed in 0.002 seconds
|