OFFSET
1,2
LINKS
Douglas E. Iannucci and Donna Mills-Taylor, On Generalizing the Connell Sequence, J. Integer Sequences, Vol. 2, 1999, #99.1.7.
FORMULA
a(n) = 3*n - 2*floor((13 + sqrt(40*n-31))/10). See general formula in A045928. - Michel Marcus, Apr 02 2013
EXAMPLE
From Michel Marcus, Apr 02 2013: (Start)
As a triangle, sequence begins:
1;
2, 5, 8, 11, 14, 17;
18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48;
...
(End)
MAPLE
A045930:=n->3*n - 2*floor((13 + sqrt(40*n-31))/10); seq(A045930(n), n=1..100); # Wesley Ivan Hurt, Feb 03 2014
MATHEMATICA
Table[3 n - 2*Floor[(13 + Sqrt[40 n - 31])/10], {n, 100}] (* Wesley Ivan Hurt, Feb 03 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from jeroen.lahousse(AT)icl.com
STATUS
approved