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.

A108541 Lesser prime factor of n-th golden semiprime.

Original entry on oeis.org

2, 3, 7, 11, 19, 23, 29, 37, 41, 67, 79, 97, 101, 103, 107, 131, 149, 163, 167, 181, 193, 227, 241, 271, 277, 283, 311, 353, 367, 379, 383, 397, 409, 419, 433, 449, 457, 487, 509, 563, 607, 613, 631, 661, 719, 733, 761, 797, 853, 883, 919, 941, 971, 997, 1031
Offset: 1

Views

Author

Reinhard Zumkeller, Jun 09 2005

Keywords

Comments

abs(phi*a(n) - A108542(n)) < 1, where phi = golden ratio = (1+sqrt(5))/2.

Crossrefs

Programs

  • Mathematica
    f[p_] := Module[{x = GoldenRatio * p}, p1 = NextPrime[x, -1]; p2 = NextPrime[p1]; q = If[x - p1 < p2 - x, p1, p2]; If[Abs[q - x] < 1, q, 0]]; seq = {}; p=1; Do[p = NextPrime[p]; If[f[p] > 0, AppendTo[seq, p]], {200}]; seq (* Amiram Eldar, Nov 28 2019 *)

Formula

a(n) = A108540(n)/A108542(n).