cp's OEIS Frontend

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.

A253705 Indices of primes in the 8th-order Fibonacci number sequence, A079262.

Original entry on oeis.org

9, 17, 25, 125, 350, 1322, 108935, 199528
Offset: 1

Views

Author

Robert Price, Jan 09 2015

Keywords

Comments

a(9) > 2*10^5.

Crossrefs

Programs

  • Mathematica
    a={0,0,0,0,0,0,0,1}; step=8; lst={}; For[n=step,n<=1000,n++, sum=Plus@@a; If[PrimeQ[sum], AppendTo[lst,n]]; a=RotateLeft[a]; a[[step]]=sum]; lst
    Flatten[Position[LinearRecurrence[{1,1,1,1,1,1,1,1},{0,0,0,0,0,0,0,1},200000],?PrimeQ]]-1 (* The program takes a long time to run *) (* _Harvey P. Dale, Apr 26 2018 *)
  • PARI
    lista(nn) = {gf = x^7/(1-x-x^2-x^3-x^4-x^5-x^6-x^7-x^8); for (n=0, nn, if (isprime(polcoeff(gf+O(x^(n+1)), n)), print1(n, ", ")););} \\ Michel Marcus, Jan 12 2015