login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A075695 a(1)=1, then "jump over two primes": a(n) = 2*nextprime(nextprime(a(n-1))) - a(n-1). 4
1, 5, 17, 29, 45, 61, 81, 97, 109, 145, 157, 177, 185, 201, 245, 269, 285, 329, 345, 353, 381, 397, 421, 445, 469, 505, 537, 557, 581, 605, 621, 661, 693, 725, 741, 761, 785, 809, 833, 873, 889, 933, 949, 985, 1009, 1029, 1037, 1061, 1077, 1105, 1129, 1177 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The rule "jump over next something" can be changed. A075694 gives the simplest example: "jump over next prime".
LINKS
FORMULA
a(1)=1, a(n) = 2*nextprime(nextprime(a(n-1)))-a(n-1).
EXAMPLE
a(1)=1; next second prime (second smallest larger than a(1))=3; "jump over" it: 3+(3-1)=5; a(2)=5; next second prime (second smallest larger than a(2))=11; "jump over" it: 11+(11-5)=17.
MAPLE
a(1) := 1; a(n)=2*nextprime(nextprime(a(n-1)))-a(n-1);
PROG
(PARI) np(k)=my(m=k+1); while(!isprime(m), m++); m;
first(m)=my(v=vector(m)); v[1]=1; for(i=2, m, v[i]=2*np(np(v[i-1]))-v[i-1]; ); v; /* Anders Hellström, Aug 08 2015 */
(Magma) [n le 1 select 1 else 2*NextPrime(NextPrime(Self(n-1)))-Self(n-1): n in [1..55]]; // Vincenzo Librandi, Aug 09 2015
CROSSREFS
Cf. A075694.
Sequence in context: A071695 A242025 A027703 * A146278 A034937 A024351
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Sep 26 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)