|
|
A180363
|
|
a(n) = Lucas(prime(n)).
|
|
8
|
|
|
3, 4, 11, 29, 199, 521, 3571, 9349, 64079, 1149851, 3010349, 54018521, 370248451, 969323029, 6643838879, 119218851371, 2139295485799, 5600748293801, 100501350283429, 688846502588399, 1803423556807921, 32361122672259149, 221806434537978679
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(1) = 3 because the 1st prime is 2, and the 2nd Lucas number is A000032(2) = 3.
a(2) = 4 because the 2nd prime is 3, and the 3rd Lucas number is A000032(3) = 4.
a(3) = 11 because the 3rd prime is 5, and the 5th Lucas number is A000032(5) = 11.
|
|
MAPLE
|
# second Maple program:
a:= n-> (<<1|1>, <1|0>>^ithprime(n). <<2, -1>>)[1, 1]:
|
|
MATHEMATICA
|
|
|
PROG
|
(Python)
from sympy import lucas, prime
def a(n): return lucas(prime(n))
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|