login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A045928 The generalized Connell sequence C_{3,2}. 8
1, 2, 5, 8, 9, 12, 15, 18, 21, 22, 25, 28, 31, 34, 37, 40, 41, 44, 47, 50, 53, 56, 59, 62, 65, 66, 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 97, 100, 103, 106, 109, 112, 115, 118, 121, 124, 127, 130, 133, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 176, 177 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

Douglas E. Iannucci and Donna Mills-Taylor, On Generalizing the Connell Sequence, J. Integer Sequences, Vol. 2, 1999, #99.1.7.

FORMULA

C(n, m, r) = n*m - (m - 1)*floor((3*r - 2 + sqrt(8*r*(n - 1) + (r - 2)^2)) / (2*r)) with m=3 and r=2, thus a(n) = 3*n - 2*floor(1 + sqrt(n-1)). - Michel Marcus, Apr 02 2013

EXAMPLE

As a triangle, sequence begins:

1;

2, 5, 8;

9, 12, 15, 18, 21; - Michel Marcus, Apr 02 2013

MATHEMATICA

Table[3*n-2*Floor[1+Sqrt[n-1]], {n, 70}] (* Harvey P. Dale, Apr 19 2019 *)

PROG

(PARI) lista(nrow, m=3, r=2) = {a = 1; for (irow = 1, nrow, for (k = 1, 1 + r*(irow -1), print1(a, ", "); a += m; ); a += 1 - m; ); } \\ Michel Marcus, Apr 02 2013

(Haskell)

a045928 n = 3 * n - 2 * floor (1 + sqrt (fromIntegral n - 1))

-- Reinhard Zumkeller, Aug 09 2015

CROSSREFS

Sequence in context: A047387 A063282 A276882 * A190768 A184866 A032684

Adjacent sequences:  A045925 A045926 A045927 * A045929 A045930 A045931

KEYWORD

nonn,easy,nice

AUTHOR

N. J. A. Sloane.

EXTENSIONS

More terms from jeroen.lahousse(AT)icl.com.

Typo in formula fixed by Reinhard Zumkeller, Aug 09 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 13 20:57 EST 2019. Contains 329106 sequences. (Running on oeis4.)