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.

A327965 "Tamed variant" of arithmetic derivative: a(0) = a(1) = 0; for n > 1, a(n) = A327938(A003415(n)).

Original entry on oeis.org

0, 0, 1, 1, 1, 1, 5, 1, 3, 6, 7, 1, 1, 1, 9, 2, 2, 1, 21, 1, 6, 10, 13, 1, 11, 10, 15, 1, 2, 1, 31, 1, 5, 14, 19, 3, 15, 1, 21, 1, 17, 1, 41, 1, 3, 39, 25, 1, 7, 14, 45, 5, 14, 1, 3, 1, 23, 22, 31, 1, 23, 1, 33, 51, 3, 18, 61, 1, 18, 26, 59, 1, 39, 1, 39, 55, 5, 18, 71, 1, 11, 1, 43, 1, 31, 22, 45, 2, 35, 1, 123, 5, 6
Offset: 0

Views

Author

Antti Karttunen, Oct 01 2019

Keywords

Comments

Applying A327938 to the result of A003415(n) ensures that all terms stay in A048103, and that all iteration paths will (hopefully) terminate in zero. See A327966.

Crossrefs

Programs

  • PARI
    A003415(n) = {my(fac); if(n<1, 0, fac=factor(n); sum(i=1, matsize(fac)[1], n*fac[i, 2]/fac[i, 1]))}; \\ From A003415
    A327938(n) = { my(f = factor(n)); for(k=1, #f~, f[k,2] = (f[k,2]%f[k,1])); factorback(f); };
    A327965(n) = if(n<=1,0,A327938(A003415(n)));

Formula

a(0) = a(1) = 0; for n > 1, a(n) = A327938(A003415(n)).

A327966 Number of iterations of "tamed variant of arithmetic derivative", A327965 needed to reach 0 from n, or -1 if zero is never reached.

Original entry on oeis.org

0, 1, 2, 2, 2, 2, 3, 2, 3, 4, 3, 2, 2, 2, 5, 3, 3, 2, 5, 2, 4, 4, 3, 2, 3, 4, 4, 2, 3, 2, 3, 2, 3, 6, 3, 3, 4, 2, 5, 2, 3, 2, 3, 2, 3, 3, 5, 2, 3, 6, 4, 3, 6, 2, 3, 2, 3, 4, 3, 2, 3, 2, 7, 4, 3, 6, 3, 2, 6, 5, 3, 2, 3, 2, 3, 3, 3, 6, 3, 2, 3, 2, 3, 2, 3, 4, 4, 3, 4, 2, 4, 3, 4, 4, 7, 4, 3, 2, 7, 4, 4, 2, 4, 2, 3, 3, 3, 2, 3, 2, 4, 4, 4, 2, 3, 3, 4, 4, 3, 4, 3
Offset: 0

Views

Author

Antti Karttunen, Oct 01 2019

Keywords

Comments

Conjecture: from all n, zero is eventually reached.

Crossrefs

Cf. A003415, A256750, A327938, A327965, A327967 (indices of the records).

Programs

  • PARI
    A003415(n) = {my(fac); if(n<1, 0, fac=factor(n); sum(i=1, matsize(fac)[1], n*fac[i, 2]/fac[i, 1]))}; \\ From A003415
    A327938(n) = { my(f = factor(n)); for(k=1, #f~, f[k,2] = (f[k,2]%f[k,1])); factorback(f); };
    A327965(n) = if(n<=1,0,A327938(A003415(n)));
    A327966(n) = { my(k=0); while(n>0, k++; n = A327965(n)); (k); };
    \\ Or alternatively, as a recurrence:
    A327966(n) = if(!n,0,1+A327966(A327965(n)));

Formula

a(0) = 0; for n > 0, a(n) = 1 + a(A327965(n)).
a(p) = 2 for all primes p.

A327968 a(0) = a(1) = 0, a(prime) = 1, and for all other numbers, a(n) = the first noncomposite reached when iterating A327965, or -1 if no noncomposite is ever reached.

Original entry on oeis.org

0, 0, 1, 1, 1, 1, 5, 1, 3, 5, 7, 1, 1, 1, 5, 2, 2, 1, 7, 1, 5, 7, 13, 1, 11, 7, 2, 1, 2, 1, 31, 1, 5, 5, 19, 3, 2, 1, 7, 1, 17, 1, 41, 1, 3, 1, 7, 1, 7, 5, 1, 5, 5, 1, 3, 1, 23, 13, 31, 1, 23, 1, 5, 5, 3, 7, 61, 1, 7, 2, 59, 1, 1, 1, 1, 1, 5, 7, 71, 1, 11, 1, 43, 1, 31, 13, 1, 2, 3, 1, 11, 5, 5, 19, 5, 5, 17, 1, 7, 1, 3, 1, 5, 1, 41, 71
Offset: 0

Views

Author

Antti Karttunen, Oct 02 2019

Keywords

Comments

Of the prime terms, 5 seems to be the most common (8886 occurrences among the first 100001 terms). See also A327975.

Crossrefs

Programs

  • PARI
    A003415(n) = {my(fac); if(n<1, 0, fac=factor(n); sum(i=1, matsize(fac)[1], n*fac[i, 2]/fac[i, 1]))}; \\ From A003415
    A327938(n) = { my(f = factor(n)); for(k=1, #f~, f[k,2] = (f[k,2]%f[k,1])); factorback(f); };
    A327965(n) = if(n<=1,0,A327938(A003415(n)));
    A327968(n) = if(n<=1,0,if(isprime(n),1, while((n>1)&&!isprime(n), n = A327965(n)); (n)));

A189760 Least nonnegative number whose n-th arithmetic derivative (A003415) is zero and lower derivatives are nonzero.

Original entry on oeis.org

0, 1, 2, 6, 9, 14, 33, 62, 177, 414, 1155, 1719, 2625, 4018, 6849, 9770, 17675, 30206, 90609, 260343, 336006, 757995, 1290874, 2029875, 4059746, 7037655, 17594075, 50850483, 68589598, 186888243, 373659254, 1884639669
Offset: 0

Views

Author

T. D. Noe, Apr 27 2011

Keywords

Comments

a(32) <= 9519378185. - Donovan Johnson, Apr 30 2011
From Antti Karttunen, Oct 02 2019: (Start)
For at least n = 1, 3, 4, 5, 6, 7, 10, 14, 15, 17, 21, 23, 24, 25, 26, 27, 28, 29, we have = a(n) = A003415(a(1+n)), thus we have subsequences like 6, 9, 14, 33, 62, 177 that are obtained by iterating A098699 starting from 6, but as A098699(177) = 0, that run ends there. From a(14) to a(16) we have a run of three such terms: 6849, 9770, 17675. A yet longer such run is from a(23) to a(30): 2029875, 4059746, 7037655, 17594075, 50850483, 68589598, 186888243, 373659254.
Applying A327968 to these terms yields: 0, 0, 1, 5, 5, 5, 5, 5, 5, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, ...
Question: Are there indefinitely long sequences of iterations of A003415 that end with steps ... -> p -> 1 -> 0, with p=5? Are there such sequences for any other prime p? Can we construct a such sequence that is guaranteed to be infinite? See the subtree depicted in A327975 and conjecture #8 in Ufnarovski and Ahlander paper.
(End)

Crossrefs

Cf. A256750, A327966 (left inverses for this sequence).
Subsequence of A048103. Differs from A327967 for the first time at n=19.

Programs

  • Mathematica
    nn = 15; t = Table[0, {nn}]; n = 0; cnt = 0; While[cnt < nn, n++; k = 0; d = n; While[f = Transpose[FactorInteger[d]]; d > 1 && And @@ MapThread[Greater, f], k++; d = Plus @@ (d*f[[2]]/f[[1]])]; If[d == 1, k++; If[k <= nn && t[[k]] == 0, t[[k]] = n; cnt++]]]; Join[{0},t]

Formula

Least k such that A099307(k) = n.
For all n >= 0, A256750(a(n)) = A327966(a(n)) = n, A327965(a(n)) = A003415(a(n)). - Antti Karttunen, Oct 02 2019

Extensions

a(26)-a(31) from Donovan Johnson, Apr 29 2011

A363373 a(n) is the least k such that, if x_0, x_1, x_2, ... are the iterations of the arithmetic derivative A003415 starting with x_0 = k, x_0 > x_1 > ... > x_n.

Original entry on oeis.org

0, 1, 2, 6, 9, 14, 33, 62, 177, 886, 1155, 1719, 3255, 4018, 13377, 19942, 46022, 103401, 193426, 422751, 634113, 1080742, 2850591, 5493662, 10252635, 25631525, 51217666, 135055839
Offset: 0

Views

Author

Robert Israel, May 29 2023

Keywords

Comments

a(n) is the least k such that the first n iterations of A003415 starting at k are decreasing.
a(n) is the least k such that A361869(k) = n.

Examples

			a(3) = 6 because the iterations of A003415 starting at 6 are 6 > 5 > 1 > 0 = 0.
First differs from A189760 and A327967 at 9, where a(9) = 886 (corresponding to iterations 886 > 445 > 94 > 49 > 14 > 9 > 6 > 5 > 1 > 0) while A189760(9) = A327967(9) = 414 < A003415(414) = 501.
		

Crossrefs

Programs

  • Maple
    ader:= proc(n) local t;
      n * add(t[2]/t[1], t = ifactors(n)[2])
    end proc:
    f:= proc(n) option remember; local t;
       t:= ader(n);
       if t < n then procname(t)+1 else 0 fi
    end proc:
    M:= 25: V:= Array(0..M,-1): count:= 0:
    for n from 0 while count <= M do
      v:= f(n);
      if V[v] = -1 then count:= count+1; V[v]:= n fi;
    od:
    convert(V,list);
Showing 1-5 of 5 results.