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.

A168628 Numbers n such that n and n+-1 have 4 distinct prime factors.

Original entry on oeis.org

37961, 44485, 45695, 50141, 51429, 55131, 55385, 61335, 63365, 64295, 67165, 68265, 68475, 70005, 70091, 71709, 72709, 76153, 80445, 81549, 81719, 82041, 84435, 85491, 86241, 90364, 95381, 97383, 98021, 99085, 99385, 99429, 99789, 100165, 100491, 100595
Offset: 1

Views

Author

Keywords

Crossrefs

Subsequence of A140078.

Programs

  • Mathematica
    f[n_]:=Length[FactorInteger[n]]; lst={};Do[If[f[n]>=4&&f[n-1]>=4&&f[n+1]>=4,AppendTo[lst,n]],{n,9!}];lst
    SequencePosition[PrimeNu[Range[110000]],{4,4,4}][[All,1]]+1 (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 27 2018 *)
  • PARI
    is(n)=omega(n)==4 && omega(n+1)==4 && omega(n-1)==4 \\ Charles R Greathouse IV, Jan 25 2025

Extensions

Corrected and extended by Harvey P. Dale, Apr 27 2018