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-5 of 5 results.

A349905 Arithmetic derivative of A003961(n), where A003961 is fully multiplicative with a(p) = nextprime(p).

Original entry on oeis.org

0, 1, 1, 6, 1, 8, 1, 27, 10, 10, 1, 39, 1, 14, 12, 108, 1, 55, 1, 51, 16, 16, 1, 162, 14, 20, 75, 75, 1, 71, 1, 405, 18, 22, 18, 240, 1, 26, 22, 216, 1, 103, 1, 87, 95, 32, 1, 621, 22, 91, 24, 111, 1, 350, 20, 324, 28, 34, 1, 318, 1, 40, 135, 1458, 24, 119, 1, 123, 34, 131, 1, 945, 1, 44, 119, 147, 24, 151, 1, 837
Offset: 1

Views

Author

Antti Karttunen, Dec 05 2021

Keywords

Crossrefs

Cf. A003415, A003961, A026424 (positions of odd terms), A028260 (of even terms), A066829 (parity of a(n)).
Cf. A358760, A358761, A358762, A358763 for indices of terms that of the form 4k+j, for j=0..3, and A358750, A358751, A358752, A358753 for their characteristic functions.

Programs

  • Mathematica
    f1[p_, e_] := e/p; d[1] = 0; d[n_] := n * Plus @@ f1 @@@ FactorInteger[n]; f2[p_, e_] := NextPrime[p]^e; s[1] = 1; s[n_] := Times @@ f2 @@@ FactorInteger[n]; a[n_] := d[s[n]]; Array[a, 100] (* Amiram Eldar, Dec 05 2021 *)
  • PARI
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A003961(n) = { my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
    A349905(n) = A003415(A003961(n));

Formula

a(n) = A003415(A003961(n)).

A344027 Arithmetic derivative applied to prime shift array: Square array A(n,k) = A003415(A246278(n,k)), read by falling antidiagonals.

Original entry on oeis.org

1, 4, 1, 5, 6, 1, 12, 8, 10, 1, 7, 27, 12, 14, 1, 16, 10, 75, 18, 22, 1, 9, 39, 16, 147, 24, 26, 1, 32, 14, 95, 20, 363, 30, 34, 1, 21, 108, 18, 203, 28, 507, 36, 38, 1, 24, 55, 500, 24, 407, 32, 867, 42, 46, 1, 13, 51, 119, 1372, 30, 611, 40, 1083, 52, 58, 1, 44, 16, 135, 275, 5324, 36, 935, 48, 1587, 60, 62, 1
Offset: 1

Views

Author

Antti Karttunen, May 07 2021

Keywords

Comments

For each column k, A343221(2*k) gives the least n (row number) where A(n,k) < A246278(n,k).
Each column is monotonic.

Examples

			The top left corner of the array:
    k = 1   2   3     4   5     6   7       8     9    10  11      12  13    14
   2k = 2   4   6     8  10    12  14      16    18    20  22      24  26    28
------+--------------------------------------------------------------------------
  n=1 | 1,  4,  5,   12,  7,   16,  9,     32,   21,   24, 13,     44, 15,   32,
    2 | 1,  6,  8,   27, 10,   39, 14,    108,   55,   51, 16,    162, 20,   75,
    3 | 1, 10, 12,   75, 16,   95, 18,    500,  119,  135, 22,    650, 24,  155,
    4 | 1, 14, 18,  147, 20,  203, 24,   1372,  275,  231, 26,   1960, 30,  287,
    5 | 1, 22, 24,  363, 28,  407, 30,   5324,  455,  495, 34,   6050, 40,  539,
    6 | 1, 26, 30,  507, 32,  611, 36,   8788,  731,  663, 42,  10816, 44,  767,
    7 | 1, 34, 36,  867, 40,  935, 46,  19652, 1007, 1071, 48,  21386, 54, 1275,
    8 | 1, 38, 42, 1083, 48, 1235, 50,  27436, 1403, 1463, 56,  31768, 60, 1539,
    9 | 1, 46, 52, 1587, 54, 1863, 60,  48668, 2175, 1955, 64,  58190, 66, 2231,
   10 | 1, 58, 60, 2523, 66, 2639, 70,  97556, 2759, 2987, 72, 102602, 76, 3219,
   11 | 1, 62, 68, 2883, 72, 3255, 74, 119164, 3663, 3503, 78, 136462, 84, 3627,
   12 | 1, 74, 78, 4107, 80, 4403, 84, 202612, 4715, 4551, 90, 219040, 96, 4847,
etc.
		

Crossrefs

Cf. A068719 (row 1).

Programs

  • PARI
    up_to = 91;
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A246278sq(row,col) = if(1==row,2*col, my(f = factor(2*col)); for(i=1, #f~, f[i,1] = prime(primepi(f[i,1])+(row-1))); factorback(f));
    A344027sq(row,col) = A003415(A246278sq(row,col));
    A344027list(up_to) = { my(v = vector(up_to), i=0); for(a=1,oo, for(col=1,a, i++; if(i > up_to, return(v)); v[i] = A344027sq(col,(a-(col-1))))); (v); };
    v344027 = A344027list(up_to);
    A344027(n) = v344027[n];

A343222 Number of iterations of x -> A003961(x) needed until A003415(x) <= x, when starting from x=n, where A003415(x) gives the arithmetic derivative of x, and A003961 shifts its prime factorization one step towards the larger primes.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 1, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 1, 0, 2, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 2, 1, 0, 0, 1, 0, 0, 0, 2, 0, 1, 0, 1, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 2, 0
Offset: 1

Views

Author

Antti Karttunen, Apr 08 2021

Keywords

Crossrefs

Positions of zeros: Union of A051674 and A083347.
Cf. also A343221, A344027.

Programs

  • PARI
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A003961(n) = { my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
    A343222(n) = if(A003415(n)<=n,0,1+A343222(A003961(n)));

A353484 a(1) = 0; and for n > 1, a(n) = A165560(n) + a(A064989(n)), where A165560 is the parity of arithmetic derivative, and A064989 shifts the prime factorization of its argument one step toward lower primes.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Apr 22 2022

Keywords

Comments

a(n) counts the number of the terms of A235991 encountered [including also n itself if the arithmetic derivative of n is odd] when repeatedly prime shifting n down to 1.

Crossrefs

Cf. A003415, A064989, A165560, A235991, A353485 (positions of zeros).

Programs

  • PARI
    A000265(n) = (n>>valuation(n,2));
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A064989(n) = { my(f=factor(A000265(n))); for(i=1, #f~, f[i,1] = precprime(f[i,1]-1)); factorback(f); };
    A353484(n) = if(1==n, 0, (A003415(n)%2) + A353484(A064989(n)));

Formula

For n >= 1, a(A000040(n)) = n, a(n^2) = 0.

A353515 The length of the shortest path from n to 1 when using the transitions x -> A003415(x) and x -> A003961(x), or -1 if no 1 can ever be reached from n.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Apr 23 2022

Keywords

Comments

This is a variant of A327969 that seems to be less in need of an escape clause. Note that enough prime shifts with A003961 will eventually transform every term of A100716 (which is a subsequence of A099309) to a term of A048103, and that A051903(A003961(n)) = A051903(n). See also the array A344027.
Records 0, 1, 4, 7, 8, 10, 12, 13, 14, 15, 16, 19, ... occur at 1, 2, 4, 8, 16, 32, 128, 256, 768, 1024, 2048, 4096, ..., etc.

Examples

			From n = 4, we can reach 1 with just four steps as A003961(4) = 9, A003415(9) = 6, A003415(6) = 5 and A003415(5) = 1, and because there are no shorter paths we have a(4) = 4.
From n = 8, we can reach 1 with seven steps, as A003415(8) = 12, A003961(12) = 45, A003415(45) = 39, A003961(39) = 85, A003415(85) = 22, A003415(22) = 13, A003415(13) = 1, and because there are no shorter paths we have a(8) = 7.
For n = 15, as A003415(15) = 8, we know that a(15) is at most a(8)+1, i.e., 8. But we can do better, as A003961(15) = 35, A003961(35) = 77, A003415(77) = 18, A003415(18) = 21, A003415(21) = 10, A003415(10) = 7, A003415(7) = 1, and because there are no shorter paths we have a(15) = 7.
From n = 49, we can reach 1 in four steps, as A003961(49) = 121, A003415(121) = 22, A003415(22) = 13, A003415(13) = 1. Note that this is less than A099307(49)-1, as it would take 5 steps to reach 1 if using the arithmetic derivative only, 49 -> 14 -> 9 -> 6 -> 5 -> 1.
		

Crossrefs

Programs

  • PARI
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); }; \\ From A003961
    A353515(n) = if(1==n,0,my(xs=Set([n]),newxs,a,b,u); for(k=1,oo, newxs=Set([]); for(i=1,#xs,u = xs[i]; a = A003415(u); if(1==a, return(k)); if(isprime(a), return(k+1)); b = A003961(u); newxs = setunion([a],newxs); newxs = setunion([b],newxs)); xs = newxs));

Formula

a(1) = 0, a(p^p) = 1 + a(A003961(p^p)) for primes p, and for other numbers, a(n) = 1 + min(a(A003415(n)), a(A003961(n))).
a(p) = 1 for all primes p.
a(n) < A099307(n), unless A099307(n) = 0. [I.e., for all n in A099308]
Showing 1-5 of 5 results.