Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125727
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125727 a(1)=1. a(2)=2. a(n) = the smallest positive integer not occurring earlier in the sequence such that a(n-2)+a(n-1) is congruent to a(n) (mod n). +0
2
1, 2, 3, 5, 8, 7, 15, 6, 12, 18, 19, 13, 32, 17, 4, 21, 25, 10, 16, 26, 42, 24, 20, 44, 14, 58, 45, 47, 34, 51, 23, 74, 31, 37, 33, 70, 29, 61, 90, 71, 38, 67, 62, 41, 103, 52, 108, 64, 123, 87, 57, 40, 97, 83, 125, 96, 50, 30, 80, 110, 68, 54, 59, 49, 43, 92, 135, 91, 88, 39 (list; graph; listen)
OFFSET

1,2

LINKS

Ferenc Adorjan, Table of n,a(n) for n=1,10000

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

Ferenc Adorjan, Some characteristics of Leroy Quet's permutation sequences

MATHEMATICA

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

PROGRAM

(PARI){Quet_p4(n)=/* Permutation sequence a'la Leroy Quet, A125727 */local(x=[1, 2], k=0, w=3); for(i=3, n, if((k=(x[i-1]+x[i-2])%i)==0, k=i); while(bittest(w, k-1)>0, k+=i); x=concat(x, k); w+=2^(k-1)); return(x)}

CROSSREFS

Sequence in context: A116918 A116917 A121369 this_sequence A112337 A141804 A121368

Adjacent sequences: A125724 A125725 A125726 this_sequence A125728 A125729 A125730

KEYWORD

nonn

AUTHOR

Leroy Quet Feb 02 2007

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Feb 03 2007

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 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research