Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A113520
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A113520 a(n) = largest nonprime nonnegative integer < n which is coprime to n. +0
1
0, 1, 1, 1, 4, 1, 6, 1, 8, 9, 10, 1, 12, 9, 14, 15, 16, 1, 18, 9, 20, 21, 22, 1, 24, 25, 26, 27, 28, 1, 30, 27, 32, 33, 34, 35, 36, 35, 38, 39, 40, 25, 42, 39, 44, 45, 46, 35, 48, 49, 50, 51, 52, 49, 54, 55, 56, 57, 58, 49, 60, 57, 62, 63, 64, 65, 66, 65, 68 (list; graph; listen)
OFFSET

1,5

COMMENT

a(1) = 0 because 0 is coprime with 1, for our purposes, and is < 1.

The numbers n with a(n) = 1 are given in A048597. - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Oct 16 2007

EXAMPLE

a(14) = 9 because 9 is the largest non-prime integer < 14 which is coprime to 14 (since the other non-prime integers > 9 and < 14 {10 and 12} aren't coprime with 14).

MATHEMATICA

a = {0}; For[n = 2, n < 70, n++, i = n - 1; While[PrimeQ[i] || GCD[n, i] > 1, i-- ]; AppendTo[a, i]]; a - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Oct 16 2007

CROSSREFS

Sequence in context: A100796 A005451 A135683 this_sequence A087652 A072195 A032310

Adjacent sequences: A113517 A113518 A113519 this_sequence A113521 A113522 A113523

KEYWORD

more,nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jan 12 2006

EXTENSIONS

More terms from Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Oct 16 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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research