OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = Lucas(2) + prime(1) = 3 + 2 = 5.
a(4) = Lucas(5) + prime(4) = 11 + 7 = 18.
MATHEMATICA
Table[LucasL[n+1]+Prime[n], {n, 40}] (* Harvey P. Dale, May 25 2021 *)
PROG
(UBASIC) 10 'Lucas variations (change value of A in line 30 as appropriate) 20 P=1 30 A=2 40 B=1 50 C=A+B:print C; :R=nxtprm(P):print R; :P=R:print C+R 51 if C=prmdiv(C) then print C; "*":U=U+1 52 if C+R=prmdiv(C+R) then print C+R; "#":V=V+1 60 D=B+C:print D; :R=nxtprm(P):print R; :P=R:print D+R 61 if D=prmdiv(D) then print D; "*":U=U+1 62 if D+R=prmdiv(D+R) then print D+R; "#":V=V+1 63 print U; V 70 stop 80 A=C:B=D:goto 50
(Magma) [ Lucas(n+1)+NthPrime(n): n in [1..40] ]; // Klaus Brockhaus, May 20 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Enoch Haga, May 05 2009
EXTENSIONS
Edited by Klaus Brockhaus, May 20 2009
Corrected and extended by Harvey P. Dale, May 25 2021
STATUS
approved