A130594 Numbers which are both lucky (A000959) and tribonacci (A000073).
1, 7, 13, 927, 1705, 10609
Offset: 1
Examples
a(6) = 10609 because it is lucky A000959(1182) and tribonacci A000073(18).
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
a(6) = 10609 because it is lucky A000959(1182) and tribonacci A000073(18).
a(3) = 10671 = A000078(18) = A000959(1187).
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 *)
use ntheory ':all'; for (1..35) { my $n = lucasv(1, -1, $); print "$n\n" if is_lucky($n) } # _Daniel Suteu, Mar 02 2019
Comments