Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A123088
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A123088 a(1)=1. For n>=2, a(n) = n + (largest integer which is <= n and is missing from the earlier terms of the sequence). +0
3
1, 4, 6, 7, 10, 11, 12, 16, 18, 19, 20, 21, 26, 28, 30, 31, 34, 35, 36, 37, 38, 44, 46, 48, 50, 51, 54, 55, 58, 59, 60, 64, 66, 67, 68, 69, 70, 71, 78, 80, 82, 84, 86, 87, 90, 91, 94, 95, 98, 99, 100, 104, 106, 107, 108, 112, 114, 115, 116, 117, 122, 124, 126, 127, 130, 131 (list; graph; listen)
OFFSET

1,2

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

EXAMPLE

The largest integer which is <= 12 and does not occur among the first 11 terms of the sequence is 9. So a(12) = 12 + 9 = 21.

MATHEMATICA

f[l_List] := Block[{n = Length[l] + 1, k = n}, While[MemberQ[l, k], k-- ]; Append[l, n + k]]; Nest[f, {1}, 70] (*Chandler*)

PROGRAM

(PARI) {m=66; w=vector(2*m); print1(a=1, ", "); for(n=2, m, k=n; while(w[k], k--); print1(a=n+k, ", "); w[a]=1)} - (Klaus Brockhaus, Oct 05 2006)

CROSSREFS

Cf. A123679.

Sequence in context: A010418 A087790 A086170 this_sequence A153235 A133483 A153082

Adjacent sequences: A123085 A123086 A123087 this_sequence A123089 A123090 A123091

KEYWORD

nonn

AUTHOR

Leroy Quet Sep 27 2006

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net) and Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Sep 30 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research