A181427 a(n) = n + [n^2 if n is odd or n^3 if n is even].
2, 10, 12, 68, 30, 222, 56, 520, 90, 1010, 132, 1740, 182, 2758, 240, 4112, 306, 5850, 380, 8020, 462, 10670, 552, 13848, 650, 17602, 756, 21980, 870, 27030, 992, 32800, 1122, 39338, 1260, 46692, 1406, 54910, 1560, 64040, 1722, 74130, 1892, 85228, 2070
Offset: 1
Examples
For n=5, 5+5^2=30 and n=6 6+6^3=222.
Links
- B. Berselli, Table of n, a(n) for n = 1..10000. [From _Bruno Berselli_, Oct 20 2010]
- Index entries for linear recurrences with constant coefficients, signature (0,4,0,-6,0,4,0,-1).
Programs
-
Mathematica
If[OddQ[ # ],#+#^2,#+#^3]&/@Range[50] (* Harvey P. Dale, Nov 03 2010 *)
Formula
Extensions
Formulas and more terms from R. J. Mathar and Bruno Berselli, Oct 19 2010
Comments