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.

A217287 Length of chain of consecutive integers starting with n, where each new integer in the chain has a prime factor which no previous member in the chain has.

Original entry on oeis.org

3, 2, 3, 4, 3, 2, 5, 4, 3, 5, 5, 4, 3, 2, 3, 8, 7, 6, 5, 4, 3, 5, 4, 3, 5, 6, 5, 4, 3, 2, 5, 4, 3, 6, 5, 9, 8, 7, 6, 5, 7, 6, 5, 4, 3, 8, 7, 6, 5, 4, 3, 8, 7, 6, 5, 7, 7, 6, 5, 4, 3, 2, 7, 8, 7, 6, 5, 4, 3, 5, 9, 8, 7, 6, 5, 5, 4, 3, 11, 10, 9, 8, 7, 6, 5, 10, 9, 8, 7, 6, 5, 4, 3, 6, 5, 9, 8, 7, 9, 8
Offset: 1

Views

Author

Lior Manor, Sep 30 2012

Keywords

Comments

a(n) >= 2. If n < 2 is prime or prime power, a(n) >= 3. For any n > 1, k > 1, a(n^k - n) <= n.
a(n) is also the smallest k>0 such that n+k is k-smooth (i.e. has no prime factor > k). - N. J. A. Sloane, Apr 25 2020

Examples

			Example: a(7)=5 since 7 starts a chain of 5 integers 7-11 with the following property: 7 is divisible by 7, 8 is divisible by 2, 9 is divisible by 3, 10 is divisible by 5, 11 is divisible by 11. And the next integer 12 is divisible by 2 and 3, both of them are prime factors of prior members in the chain.
		

Crossrefs

Cf. A006530, A217288 and A217289 (records), A217438.

Programs

  • Maple
    A006530 := n->max(1, op(numtheory[factorset](n)));
    a:=[]; M:=120;
    for n from 1 to M do
       for k from 1 to 3*n do
       if A006530(n+k) <= k then a:=[op(a),k]; break; fi;
       od;
    od:
    a; # N. J. A. Sloane, Apr 25 2020
  • Mathematica
    Block[{nn = 111, r}, r = Prime@ Range[PrimePi@ nn]; r = Table[FromDigits[#, 2] &@ Map[Boole[Mod[n, #] == 0] &, r], {n, nn}]; Array[Block[{k = # + 1, s = r[[#]]}, While[UnsameQ[s, Set[s, BitOr[s, r[[k]] ] ] ], k++]; k - #] &, nn - Ceiling@ Sqrt@ nn] ] (* Michael De Vlieger, Apr 30 2020 *)

Extensions

a(1) = 3 added by N. J. A. Sloane, Apr 25 2020

A217438 Triangle with the chains described in A217287.

Original entry on oeis.org

1, 2, 3, 2, 3, 3, 4, 5, 4, 5, 6, 7, 5, 6, 7, 6, 7, 7, 8, 9, 10, 11, 8, 9, 10, 11, 9, 10, 11, 10, 11, 12, 13, 14, 11, 12, 13, 14, 15, 12, 13, 14, 15, 13, 14, 15, 14, 15, 15, 16, 17, 16, 17, 18, 19, 20, 21, 22, 23, 17, 18, 19, 20, 21, 22, 23, 18, 19, 20, 21, 22, 23, 19, 20, 21, 22, 23, 20, 21, 22, 23, 21, 22, 23
Offset: 1

Views

Author

Lior Manor, Oct 03 2012

Keywords

Comments

The length of row n is A217287(n).

Examples

			These are the first chains of the triangle:
1, 2, 3;
   2, 3;
      3, 4, 5;
         4, 5, 6, 7;
            5, 6, 7;
               6, 7;
                  7, 8, 9, 10, 11;
                     8, 9, 10, 11;
                        9, 10, 11;
                           10, 11, 12, 13, 14;
                               ...
		

Crossrefs

Programs

  • Mathematica
    Block[{nn = 24, r}, r = Array[If[# == 1, 0, Total[2^(PrimePi /@ FactorInteger[#][[All, 1]] - 1)]] &, nn + Ceiling@ Sqrt@ nn]; Array[Block[{k = # + 1, s = r[[#]]}, While[UnsameQ[s, Set[s, BitOr[s, r[[k]] ] ] ], k++]; Range[#, k - 1]] &, nn] ] // Flatten (* Michael De Vlieger, May 02 2020 *)

Extensions

Row 1 prepended to match A217287 and edited by Michael De Vlieger, May 02 2020.

A217288 Records in A217287.

Original entry on oeis.org

3, 4, 5, 8, 9, 11, 14, 18, 19, 20, 22, 25, 30, 32, 35, 38, 41, 45, 46, 49, 52, 54, 62, 68, 72, 73, 74, 85, 86, 88, 90, 105, 110, 112, 126, 128, 143, 144, 149, 154, 161, 166, 182
Offset: 1

Views

Author

Lior Manor, Sep 30 2012

Keywords

Crossrefs

Extensions

Beginning changed because of new term a(1)=3 in A217287. - N. J. A. Sloane, Apr 25 2020
Showing 1-3 of 3 results.