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.

A103808 Primes from merging of 6 successive digits in decimal expansion of the Golden Ratio; (1+sqrt(5))/2.

Original entry on oeis.org

339887, 458683, 638117, 628189, 902449, 418939, 189391, 386891, 235369, 693179, 607667, 595939, 613199, 171169, 631361, 497587, 864449, 987433, 544877, 647809, 217057, 705751, 427621, 410117, 666599, 979873, 731761, 874807, 530567, 228911
Offset: 1

Views

Author

Andrew G. West (WestA(AT)wlu.edu), Mar 29 2005

Keywords

Comments

Leading zeros are not permitted, so each term is 6 digits in length. - Harvey P. Dale, Oct 23 2011

Crossrefs

Programs

  • Mathematica
    With[{len=6},FromDigits/@Select[Partition[RealDigits[GoldenRatio,10, 1000][[1]],len,1],PrimeQ[FromDigits[#]] &&IntegerLength[ FromDigits[#]] ==len&]] (* Harvey P. Dale, Oct 23 2011 *)
  • PARI
    A103808(n,x=(sqrt(5)+1)/2, m=6,silent=0)={m=10^m; for(k=1, default(realprecision), (isprime(p=x\.1^k%m)&&p*10>m)||next;silent||print1(p", ");n--||return(p))} \\ The optional arguments can be used to produce other sequences of this series (cf. Crossrefs). Use, e.g., \p999 to set precision to 999 digits. - M. F. Hasler, Nov 01 2014

Extensions

Offset changed from 0 to 1 by Vincenzo Librandi, Apr 22 2013