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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A109400 For all k: the first k numbers followed by the first k primes. 3
1, 2, 1, 2, 2, 3, 1, 2, 3, 2, 3, 5, 1, 2, 3, 4, 2, 3, 5, 7, 1, 2, 3, 4, 5, 2, 3, 5, 7, 11, 1, 2, 3, 4, 5, 6, 2, 3, 5, 7, 11, 13, 1, 2, 3, 4, 5, 6, 7, 2, 3, 5, 7, 11, 13, 17, 1, 2, 3, 4, 5, 6, 7, 8, 2, 3, 5, 7, 11, 13, 17, 19, 1, 2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 5, 7, 11, 13, 17, 19, 23 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

a(k*(k-1) + m) = a(A002378(k-1) + m) = m for 1<=m<=k;

a(k^2 + m) = a(A000290(k) + m) = A000040(m) for 1<=m<=k;

see A109401 for number of primes and A109402 for partial sums.

LINKS

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

EXAMPLE

1, 2; 1 2, 2 3; 1 2 3, 2 3 5; 1 2 3 4, 2 3 5 7; 1 2 ...

MATHEMATICA

With[{prs=Prime[Range[20]]}, Flatten[Table[{Range[n], Take[prs, n]}, {n, 10}]]] (* From Harvey P. Dale, Dec 08 2011 *)

PROG

(Haskell)

a109400 n = a109400_list !! (n-1)

a109400_list = concatMap (\x -> [1..x] ++ take x a000040_list) [1..]

-- Reinhard Zumkeller, Dec 11 2011

CROSSREFS

Cf. A002260, A037126, A082500, A000040.

Sequence in context: A178677 A054717 A086421 * A202389 A176853 A000374

Adjacent sequences:  A109397 A109398 A109399 * A109401 A109402 A109403

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jun 27 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 17:48 EST 2012. Contains 205939 sequences.