Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125065
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125065 a(1)=1. a(n) is the smallest positive integer not occurring earlier in the sequence such that a(n)/GCD(a(n),a(n-1)) is not a prime. +0
1
1, 4, 2, 8, 9, 3, 10, 5, 6, 16, 15, 12, 25, 14, 7, 18, 20, 21, 22, 11, 24, 27, 26, 13, 28, 30, 32, 33, 34, 17, 35, 36, 40, 39, 38, 19, 42, 44, 45, 46, 23, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 29, 60, 63, 62, 31, 64, 65, 66, 68, 69, 70, 72, 75, 74, 37, 76, 77, 78, 80, 81, 82 (list; graph; listen)
OFFSET

1,2

COMMENT

Sequence is a permutation of the positive integers.

EXAMPLE

a(22) = 27 because 27 is the smallest positive integer not occurring among the first 21 terms of the sequence such that a(22)/GCD(a(22),a(21)) = 27/GCD(27, 24) = 9 is not a prime.

a(8) = 5 because 5 is the smallest positive integer not occurring among the 1st 7 terms of the sequence such that a(8)/GCD(a(8),a(7)) = 5/GCD(5,10) = 1 is not a prime.

MATHEMATICA

f[l_List] := Block[{k = 1}, While[MemberQ[l, k] || PrimeQ[k/GCD[k, l[[ -1]]]], k++ ]; Append[l, k]]; Nest[f, {1}, 72] (*Chandler*)

CROSSREFS

Sequence in context: A098798 A131783 A094312 this_sequence A109816 A050128 A134042

Adjacent sequences: A125062 A125063 A125064 this_sequence A125066 A125067 A125068

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jan 09 2007

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Feb 13 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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research