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.

A302505 Numbers whose prime indices are squarefree and have disjoint prime indices.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 15, 16, 17, 20, 22, 24, 26, 29, 30, 31, 32, 33, 34, 40, 41, 43, 44, 47, 48, 51, 52, 55, 58, 59, 60, 62, 64, 66, 67, 68, 73, 79, 80, 82, 83, 85, 86, 88, 93, 94, 96, 101, 102, 104, 109, 110, 113, 116, 118, 120, 123, 124, 127
Offset: 1

Views

Author

Gus Wiseman, Apr 09 2018

Keywords

Comments

A prime index of n is a number m such that prime(m) divides n.

Examples

			Entry A302242 describes a correspondence between positive integers and multiset multisystems. In this case it gives the following sequence of set multisystems.
01: {}
02: {{}}
03: {{1}}
04: {{},{}}
05: {{2}}
06: {{},{1}}
08: {{},{},{}}
10: {{},{2}}
11: {{3}}
12: {{},{},{1}}
13: {{1,2}}
15: {{1},{2}}
16: {{},{},{},{}}
17: {{4}}
20: {{},{},{2}}
22: {{},{3}}
24: {{},{},{},{1}}
26: {{},{1,2}}
29: {{1,3}}
30: {{},{1},{2}}
31: {{5}}
32: {{},{},{},{},{}}
		

Crossrefs

Programs

  • Mathematica
    primeMS[n_]:=If[n===1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    Select[Range[100],UnsameQ@@Join@@primeMS/@primeMS[#]&]

A302521 Odd numbers whose prime indices are squarefree and have disjoint prime indices. Numbers n such that the n-th multiset multisystem is a set partition.

Original entry on oeis.org

1, 3, 5, 11, 13, 15, 17, 29, 31, 33, 41, 43, 47, 51, 55, 59, 67, 73, 79, 83, 85, 93, 101, 109, 113, 123, 127, 137, 139, 141, 143, 145, 149, 155, 157, 163, 165, 167, 177, 179, 181, 187, 191, 199, 201, 205, 211, 215, 219, 221, 233, 241, 249, 255, 257, 269, 271
Offset: 1

Views

Author

Gus Wiseman, Apr 09 2018

Keywords

Comments

A prime index of n is a number m such that prime(m) divides n.

Examples

			Entry A302242 describes a correspondence between positive integers and multiset multisystems. In this case it gives the following sequence of set partitions.
01: {}
03: {{1}}
05: {{2}}
11: {{3}}
13: {{1,2}}
15: {{1},{2}}
17: {{4}}
29: {{1,3}}
31: {{5}}
33: {{1},{3}}
41: {{6}}
43: {{1,4}}
47: {{2,3}}
51: {{1},{4}}
55: {{2},{3}}
59: {{7}}
67: {{8}}
73: {{2,4}}
79: {{1,5}}
83: {{9}}
85: {{2},{4}}
93: {{1},{5}}
		

Crossrefs

Programs

  • Mathematica
    primeMS[n_]:=If[n===1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    Select[Range[1,100,2],UnsameQ@@Join@@primeMS/@primeMS[#]&]

A291686 Numbers whose prime indices other than 1 are distinct prime numbers.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 15, 16, 17, 20, 22, 24, 30, 31, 32, 33, 34, 40, 41, 44, 48, 51, 55, 59, 60, 62, 64, 66, 67, 68, 80, 82, 83, 85, 88, 93, 96, 102, 109, 110, 118, 120, 123, 124, 127, 128, 132, 134, 136, 155, 157, 160, 164, 165, 166, 170, 176, 177
Offset: 1

Views

Author

Gus Wiseman, Apr 09 2018

Keywords

Comments

A prime index of n is a number m such that prime(m) divides n.

Examples

			9 is not in the sequence because the prime indices of 9 = prime(2)*prime(2) are {2,2} which are prime numbers but not distinct.
15 is in the sequence because the prime indices of 15 = prime(2)*prime(3) are {2,3} which are distinct prime numbers.
21 is not in the sequence because the prime indices of 21 = prime(2)*prime(4) are {2,4} which are distinct but not all prime numbers.
24 is in the sequence because the prime indices of 24 = prime(1)*prime(1)*prime(1)*prime(2) are {1,1,1,2} which without the 1s are distinct prime numbers.
		

Crossrefs

Programs

  • Mathematica
    primeMS[n_]:=If[n===1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    Select[Range[100],Or[#===1,UnsameQ@@DeleteCases[primeMS[#],1]&&And@@(PrimeQ/@DeleteCases[primeMS[#],1])]&]
  • PARI
    ok(n)={my(t=n>>valuation(n,2)); issquarefree(t) && !#select(p->!isprime(primepi(p)), factor(t)[,1])} \\ Andrew Howroyd, Aug 26 2018

Formula

Sum_{n>=1} 1/a(n) = 2 * Product_{p in A006450} (1 + 1/p) converges since the sum of the reciprocals of A006450 converges. - Amiram Eldar, Feb 02 2021
Showing 1-3 of 3 results.