Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A118534
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A118534 a(n) = largest k such that prime(n+1) = prime(n) + (prime(n) mod k), or 0 if no such k exists. +0
18
0, 0, 3, 0, 9, 9, 15, 15, 17, 27, 25, 33, 39, 39, 41, 47, 57, 55, 63, 69, 67, 75, 77, 81, 93, 99, 99, 105, 105, 99, 123, 125, 135, 129, 147, 145, 151, 159, 161, 167, 177, 171, 189, 189, 195, 187, 199, 219, 225, 225, 227, 237, 231, 245, 251, 257, 267, 265, 273, 279 (list; graph; listen)
OFFSET

1,3

COMMENT

a(n) = prime(n) - g(n) or A000040(n) - A001223(n) if prime(n) - g(n) > g(n), 0 otherwise.

a(n) = 0 only for primes 2, 3 and 7.

LINKS

Remi Eismann, Table of n, a(n) for n = 1..10000

EXAMPLE

n=5: prime(5) = 11, prime(6) = 13, 13 = 11 + (11 mod 3) = 11 + (11 mod 9), so A117078(5) = 3, a(n) = 9 and A117563(5) = 9/3 = 3. Thus 11 has level 3 and so is a member of A117873.

MATHEMATICA

f[n_] := If[n == 1 || n == 2 || n == 4, 0, 2Prime[n] - Prime[n + 1]]; Array[f, 62] (* Robert G. Wilson v *)

CROSSREFS

Cf. A117078, A117563.

Cf. A117078, A117563, essentially the same as A117563.

Sequence in context: A104780 A011083 A080407 this_sequence A167352 A094472 A028850

Adjacent sequences: A118531 A118532 A118533 this_sequence A118535 A118536 A118537

KEYWORD

nonn,easy

AUTHOR

Remi Eismann (reismann(AT)free.fr), Apr 18 2006, Feb 14 2008

EXTENSIONS

Edited by N. J. A. Sloane (njas(AT)research.att.com), May 07 2006

More terms from Robert G. Wilson v (rgwv(at)rgwv.com), May 09 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 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research