OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A057854(n-2), n>2. - R. J. Mathar, Jan 29 2019
MAPLE
L[1]:=1: L[2]:=3: for n from 3 to 10 do L[n]:=L[n-1]+L[n-2] od: A:={seq(L[n], n=1..10)}: B:={seq(n, n=0..L[10])}: C:=B minus A; # Emeric Deutsch, Dec 14 2004
MATHEMATICA
Complement[Range[0, 100], LucasL[Range[10]]] (* Harvey P. Dale, Mar 21 2012 *)
PROG
(Python)
def A090946(n):
if n == 1: return 0
def f(x):
if x<=2: return n
a, b, c = 1, 3, 0
while b<=x:
a, b = b, a+b
c += 1
return n+c
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Sep 10 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 28 2004
EXTENSIONS
More terms from Emeric Deutsch, Dec 14 2004
Offset corrected by Michel Marcus, Aug 15 2017
STATUS
approved