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!)
A060634 Union of Fibonacci numbers and prime numbers. 1

%I #13 Jul 03 2018 02:33:41

%S 1,2,3,5,7,8,11,13,17,19,21,23,29,31,34,37,41,43,47,53,55,59,61,67,71,

%T 73,79,83,89,97,101,103,107,109,113,127,131,137,139,144,149,151,157,

%U 163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251

%N Union of Fibonacci numbers and prime numbers.

%H Harry J. Smith, <a href="/A060634/b060634.txt">Table of n, a(n) for n = 1..1000</a>

%t Module[{nn=15,fib},fib=Fibonacci[Range[nn]];Union[Join[fib, Prime[ Range[ PrimePi[ Last[fib]]]]]]] (* _Harvey P. Dale_, Apr 21 2013 *)

%o (PARI) { p=2; f=1; g=1; for (n=1, 1000, if (f<p, a=f; s=f; f+=g; g=s, a=p; q=p; p=nextprime(p + 1); if (q==f, s=f; f+=g; g=s); ); write("b060634.txt", n, " ", a); ) } \\ _Harry J. Smith_, Jul 08 2009

%Y Cf. A000040, A000045.

%K nonn,easy

%O 1,2

%A Jose' R. Brox (ambroxius2(AT)eresmas.com), Apr 15 2001

%E More terms from _Erich Friedman_, Jun 03 2001

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 19 02:12 EDT 2024. Contains 371782 sequences. (Running on oeis4.)