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!)
A079849 First differences of A079848. 1
1, 2, 6, 12, 14, 10, 50, 4, 48, 62, 22, 120, 30, 104, 154, 116, 40, 122, 178, 66, 218, 28, 72, 296, 220, 290, 130, 552, 80, 322, 158, 400, 302, 528, 520, 170, 268, 236, 576, 454, 600, 470, 766, 224, 1090, 666, 180, 764, 868, 606, 572, 294, 738, 70, 918, 1122, 1196 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
PROG
(Python)
from itertools import islice
from sympy import nextprime
def A079849_gen(): # generator of terms
aset2, alist, k, m = set(), [2], 2, 2
while (k:=nextprime(k)):
bset2 = set()
for a in alist:
if (b:=k-a) in aset2:
break
bset2.add(b)
else:
yield k-m
alist.append(m:=k)
aset2.update(bset2)
A079849_list = list(islice(A079849_gen(), 30)) # Chai Wah Wu, Sep 11 2023
CROSSREFS
Cf. A079848.
Sequence in context: A216429 A250178 A154712 * A260907 A333833 A057895
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Feb 18 2003
EXTENSIONS
Extended by Ray Chandler, Feb 11 2007
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 02:53 EDT 2024. Contains 371906 sequences. (Running on oeis4.)