Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A159193
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A159193 a(n) is the smallest positive integer not yet in the sequence with gcd(n,a(n)) > 1 but a(n) != n; a(1) = 1 by convention. +0
1
1, 4, 6, 2, 10, 3, 14, 12, 15, 5, 22, 8, 26, 7, 9, 18, 34, 16, 38, 24, 27, 11, 46, 20, 30, 13, 21, 32, 58, 25, 62, 28, 36, 17, 40, 33, 74, 19, 42, 35, 82, 39, 86, 48, 50, 23, 94, 44, 56, 45, 54, 60, 106, 51, 65, 49, 63, 29, 118, 52, 122, 31, 57, 66, 55, 64, 134, 70, 72, 68, 142 (list; graph; listen)
OFFSET

1,2

COMMENT

This is a permutation of the positive integers with a(a(n)) = n.

Does every positive rational occur as a value of a(n)/n?

PROGRAM

(PARI) va(n) = local(v); v=vector(n); v[1]=1; for(k=2, n, v[k]=na(v, k)); v

na(v, k) = for(i=1, 2*k, if(gcd(i, k)>1&&i!=k, if(!inv(v, k-1, i), return(i))))

inv(v, k, x) = for(i=1, k, if(v[i]==x, return(1))); return(0)

CROSSREFS

Sequence in context: A021220 A095196 A074828 this_sequence A118967 A059030 A066984

Adjacent sequences: A159190 A159191 A159192 this_sequence A159194 A159195 A159196

KEYWORD

nonn

AUTHOR

Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Apr 05 2009

page 1

Search completed in 0.007 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