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!)
A306632 Numbers n which are both lucky (A000959) and Lucas (A000032). 0
1, 3, 7, 3571, 9349, 710647, 12752043 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
No more terms below 10^9.
Calculated using Hugo van der Sanden's Lucky numbers up to 10^9.
LINKS
MATHEMATICA
m = 10^4; L = Table[2*i + 1, {i, 0, m}]; For[n = 2, n < Length[L], r = L[[n++]]; L = ReplacePart[L, Table[r*i -> Nothing, {i, 1, Length[L]/r}]]]; lucas = {}; n = 1; While[(l = LucasL[n]) < m, AppendTo[lucas, l]; n++]; Intersection[L, lucas] (* after Jean-François Alcover at A000959 *)
PROG
(Perl) use ntheory ':all'; for (1..35) { my $n = lucasv(1, -1, $_); print "$n\n" if is_lucky($n) } # Daniel Suteu, Mar 02 2019
CROSSREFS
Sequence in context: A296351 A349007 A101006 * A083461 A137029 A174307
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Mar 02 2019
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 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)