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.

Showing 1-3 of 3 results.

A214674 Conway's subprime Fibonacci sequence.

Original entry on oeis.org

1, 1, 2, 3, 5, 4, 3, 7, 5, 6, 11, 17, 14, 31, 15, 23, 19, 21, 20, 41, 61, 51, 56, 107, 163, 135, 149, 142, 97, 239, 168, 37, 41, 39, 40, 79, 17, 48, 13, 61, 37, 49, 43, 46, 89, 45, 67, 56, 41, 97, 69, 83, 76, 53, 43, 48, 13
Offset: 1

Views

Author

Wouter Meeussen, Jul 25 2012

Keywords

Comments

Similar to the Fibonacci recursion starting with (1, 1), but each new nonprime term is divided by its least prime factor. Sequence enters a loop of length 18 after 38 terms on reaching (48, 13).

References

  • Siobhan Roberts, Genius At Play: The Curious Mind of John Horton Conway, Bloomsbury, 2015, pages xx-xxi.

Crossrefs

Programs

  • Mathematica
    guyKhoSal[{a_, b_}] := Block[{c, l, r}, c = NestWhile[(p = Tr[Take[#, -2]]; If[PrimeQ[p], q = p, q = p/Part[FactorInteger[p, FactorComplete -> False], 1, 1]]; Flatten[{#, q}]) &, {a, b}, FreeQ[Partition[#1, 2, 1], Take[#2, -2]] &, 2, 1000]; l = Length[c]; r = Tr@Position[Partition[c,2,1], Take[c,-2], 1, 1]; l-r-1; c]; guyKhoSal[{1,1}]
    f[s_List] := Block[{a = s[[-2]] + s[[-1]]}, If[ PrimeQ[a], Append[s, a], Append[s, a/FactorInteger[a][[1, 1]] ]]]; Nest[f, {1, 1}, 73] (* Robert G. Wilson v, Aug 09 2012 *)
  • PARI
    fatw(n,a=[0,1],p=[])={for(i=2,n,my(f=factor(a[i]+a[i-1])~);for(k=1,#f,setsearch(p,f[1,k])&next;f[2,k]--;p=setunion(p,Set(f[1,k]));break);a=concat(a,factorback(f~)));a}
    fatw(99) /* M. F. Hasler, Jul 25 2012 */

A282813 Table read by antidiagonals (n > 0, k > 0): T(n, k) is the starting index of the first loop in Conway's subprime Fibonacci sequence with starting values of n and k.

Original entry on oeis.org

38, 47, 37, 38, 1, 46, 7, 45, 36, 7, 47, 37, 1, 34, 6, 60, 38, 33, 4, 44, 34, 8, 35, 5, 1, 35, 8, 59, 47, 37, 2, 34, 6, 3, 37, 79, 7, 45, 36, 7, 1, 73, 32, 103, 45, 24, 44, 78, 58, 72, 30, 3, 3, 100, 78, 35, 9, 4, 74, 31, 1, 43, 35, 74, 35, 23, 55, 108, 35, 98
Offset: 1

Views

Author

Peter Kagey, Feb 21 2017

Keywords

Examples

			T(1, 1) = 38 because 38 is the starting index of the first loop in Conway's subprime Fibonacci sequence when starting with 1, 1 (A214674). (i.e. A214674(n) = A214674(n + k) for n >= 38 = T(1, 1) and k = A282814(1,1).)
Upper-left corner of table:
   38  37  46   7   6  34  59  79  45  78 ...
   47   1  36  34  44   8  37 103 100  35 ...
   38  45   1   4  35   3  32   3  74  92 ...
    7  37  33   1   6  73   3  35  50  98 ...
   47  38   5  34   1  30  43  55 105   3 ...
   60  35   2   7  72   1  33  33  45  22 ...
    8  37  36  58  31  42   1 103  75  52 ...
   47  45  78  74 102  34  32   1  20  61 ...
    7  44   4  98  44  73 104  74   1   1 ...
   24   9  35   4   2  34  97  21  60   1 ...
  ...
		

Crossrefs

A282812 Table read by antidiagonals (n > 0, k > 0): T(n, k) is the largest value in Conway's subprime Fibonacci sequence with starting values of n and k.

Original entry on oeis.org

239, 239, 239, 239, 2, 239, 347, 239, 239, 347, 239, 239, 3, 239, 347, 239, 239, 239, 347, 239, 239, 347, 239, 347, 4, 239, 347, 239, 239, 239, 6, 239, 347, 6, 239, 239, 347, 239, 239, 347, 5, 239, 239, 463, 239, 97, 239, 239, 239, 239, 239, 347, 347, 463
Offset: 1

Views

Author

Peter Kagey, Feb 21 2017

Keywords

Examples

			T(1, 1) = 239 because 239 is the largest value in Conway's subprime Fibonacci sequence when starting with 1, 1 (A214674).
Upper-left corner of table:
  239 239 239 347 347 239 239 239 239 239 ...
  239   2 239 239 239 347 239 463 463 239 ...
  239 239   3 347 239   6 239 347 239 239 ...
  347 239 239   4 347 239 347 239 239 463 ...
  239 239 347 239   5 239 239 239 463  10 ...
  239 239   6 347 239   6 239 239 239 109 ...
  347 239 239 239 239 239   7 463 239 239 ...
  239 239 239 239 463 239 239   8 109 239 ...
  347 239   9 733 239 239 463 239   9 347 ...
   97 347 239 347  10 239 463 109 239  10 ...
  ...
		

Crossrefs

Showing 1-3 of 3 results.