[go: up one dir, main page]

login
A004274
0, 2 and the odd numbers.
0
0, 1, 2, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131
OFFSET
0,3
FORMULA
A004280 UNION {0}. - R. J. Mathar, Oct 28 2008
a(n) = 2*n - 3 + floor(2/n), n > 0. - Wesley Ivan Hurt, May 23 2013
From Chai Wah Wu, Apr 24 2017: (Start)
a(n) = 2*a(n-1) - a(n-2) for n > 4.
G.f.: x*(1 + x^3)/(1 - x)^2. (End)
MATHEMATICA
Join[{0, 1, 2}, Range[3, 151, 2]] (* Harvey P. Dale, Aug 24 2012 *)
CROSSREFS
Cf. A004280.
Sequence in context: A355330 A338923 A360126 * A004280 A053224 A277334
KEYWORD
easy,nonn
STATUS
approved