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

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)));

A327975 Breadth-first reading of the subtree rooted at 5 of the tree where each parent node is the arithmetic derivative (A003415) of all its children.

Original entry on oeis.org

5, 6, 9, 14, 33, 49, 62, 94, 177, 817, 961, 445, 913, 1633, 2173, 2209, 1146, 886, 1822, 4414, 19193, 25829, 32393, 41033, 47429, 57929, 64133, 88229, 101753, 111173, 116729, 129413, 138233, 148553, 160229, 173093, 183929, 188453, 208613, 216773, 232229, 235913, 244229, 249929, 257573, 262793, 272633, 278153, 282533, 288329, 294473, 304613, 316229, 320933, 322853, 323429, 327653, 328313, 1155, 2649
Offset: 1

Views

Author

Antti Karttunen, Oct 02 2019

Keywords

Comments

Permutation of A328115.
The branching degree of vertex v is given by A099302(v).
Leaves form a subsequence of A098700.
Most terms of A189760 (apart from 0, 1, 2, 414, ...) seem to be located in this tree, in positions where they have no smaller siblings.
For any number k at level n (where 5 is at level 2), we have A256750(k) = A327966(k) = n.
Question: Does this subtree contain infinitely long paths? How many? Cf. conjecture number 8 in Ufnarovski and Ahlander paper, and a similar tree starting from 7, A327977.

Examples

			Because we have A003415(5) = 1, A003415(6) = 5, A003415(9) = 6, A003415(14) = 9, A003415(33) = A003415(49) = 14, A003415(62) = 33, etc, this subtree is laid out as below. The terms of this sequence are obtained by scanning each successive level of the tree from left to right, from the node 5 onward:
   (0)
    |
   (1)
    |
    5
    |
    6
    |
    9
    |
    14________________
    |                 |
    33               49
    |                 |
    62________       94_____________________________
    |    |    |       |       |      |      |       |
    |    |    |       |       |      |      |       |
   177  817  961     445     913   1633   2173    2209
              |       |       |                     |
              |       |       |                     |
            1146     886    1822                  4414
              |       |       |                     |
              |       |       |                     |
            (19193,  (1155,  (19921, ..., 829921)  (22045, ..., 4870849)
             25829,   2649,                        [49 children for 4414]
               ...,  ...,    [27 children for 1822]
            328313)  196249)
                     [19 children for 886]
        [38 children
         for 1146]
The row lengths thus start as: 1, 1, 1, 1, 2, 2, 8, 4, 133 (= 38+19+27+49), ...
		

Crossrefs

Cf. A327977 for the subtree starting from 7, and also A263267 for another similar tree.

Programs

  • PARI
    A002620(n) = ((n^2)>>2);
    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
    A327975list(e) = { my(lista=List([5]), f); for(n=1, e, f = lista[n]; for(k=1,1+A002620(f),if(A003415(k)==f, listput(lista,k)))); Vec(lista); };
    v328975 = A327975list(21);
    A327975(n) = v328975[n];
    
  • Sage
    # uses[A003415]
    def A327975():
      '''Breadth-first reading of irregular subtree rooted at 5, defined by the edge-relation A003415(child) = parent.'''
      yield 5
      for x in A327975():
        for k in [1 .. 1+(x*x)//2]:
          if A003415(k) == x: yield k
    def take(n, g):
      '''Returns a list composed of the next n elements returned by generator g.'''
      z = []
      if 0 == n: return z
      for x in g:
        z.append(x)
        if n > 1: n = n-1
        else: return(z)
    take(60, A327975())

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

A351259 First noncomposite number reached when iterating the map x -> x', when starting from x = A351255(n). Here x' is the arithmetic derivative of x, A003415.

Original entry on oeis.org

1, 2, 3, 5, 5, 7, 5, 7, 31, 7, 41, 71, 191, 2711, 7, 5, 7, 41, 103, 59, 71, 271, 71, 1031, 2887, 439, 5, 5, 7, 631, 251, 401, 3491, 1031, 1319, 17747, 9733, 1931, 16319, 77351, 131, 5, 419, 7079, 22343, 971, 5981, 6861581, 419, 18731, 11903, 33937, 7079, 15287, 15287, 6143, 6944111, 1415651, 11, 13, 5, 61, 103, 401, 631
Offset: 1

Views

Author

Antti Karttunen, Feb 11 2022

Keywords

Comments

For the initial 105367 19-smooth terms of A351255, the last 7 occurs here at a(54796), with A351255(54796) = 289993286583 = 3^2 * 7 * 11 * 13^2 * 19^5, and the last 5 occurs here at a(65777), with A351255(65777) = 391899820830375516750 = 2 * 3^2 * 5^3 * 7^3 * 13^3 * 17^3 * 19^6, already a moderately high starting value, in whose vicinity most ending primes for successful iterations are much larger. This observation motivates a conjecture: Even from large numbers with high exponents in their prime factorization it is sometimes possible to reach a small prime. Compare to the conjecture 8 in Ufnarovski & Ã…hlander paper.

Examples

			From A351255(27) = 2625 it takes 12 iterations of the map x -> A003415(x) to reach zero: 2625 -> 2825 -> 1155 -> 886 -> 445 -> 94 -> 49 -> 14 -> 9 -> 6 -> 5 -> 1 -> 0. Two steps before the final zero is the first and only prime on the path, 5, therefore a(27) = 5.
		

Crossrefs

Programs

  • PARI
    A003415checked(n) = if(n<=1, 0, my(f=factor(n), s=0); for(i=1, #f~, if(f[i,2]>=f[i,1],return(0), s += f[i, 2]/f[i, 1])); (n*s));
    A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
    A351078(n) = { while(n>1&&!isprime(n), n = A003415checked(n)); (n); };
    for(n=0, 2^9, u=A276086(n); p = A351078(u); if(p>0,print1(p, ", ")));

Formula

a(n) = A351078(A351255(n)).
a(1) = 1, and for n > 1, a(n) = A003415^[A351257(n)-2](A351255(n)). [This means: take the (A351257(n)-2)-th arithmetic derivative of A351255(n)].

A328117 Numbers such that zero or more applications of A003415 (arithmetic derivative) will yield 7.

Original entry on oeis.org

7, 10, 18, 21, 25, 38, 46, 65, 77, 98, 129, 170, 205, 217, 254, 361, 414, 426, 462, 493, 501, 529, 718, 753, 982, 998, 1141, 1362, 1501, 1502, 2041, 2045, 2077, 2105, 2257, 2285, 2869, 2933, 2998, 3102, 3133, 3706, 4066, 4078, 4309, 4497, 4885, 5213, 5214, 5461, 5837, 6363, 6410, 6546, 6649, 6749, 6901, 6913, 6937, 6953, 7011
Offset: 1

Views

Author

Antti Karttunen, Oct 06 2019

Keywords

Comments

Union of {7} with those terms of k of A099308 for which A327968(k) = 7.

Examples

			a(4) = 21 is included as A003415(A003415(21)) = 7.
a(627664) = 4294966334 (= 2^32 - 962) is included as A003415^(14)(4294966334) = 7. Note that A327966(4294966334) = 16.
		

Crossrefs

Programs

  • PARI
    A003415checked(n) = if(n<=1, 0, my(f=factor(n), s=0); for(i=1, #f~, if(f[i,2]>=f[i,1],return(0), s += f[i, 2]/f[i, 1])); (n*s));
    isA328117(n) = { while((n>7), n = A003415checked(n)); (7==n); };

A328385 If n is of the form p^p, a(n) = n, otherwise a(n) is the first number found by iterating the map x -> A003415(x) that is different from n and either a prime, or whose degree (A051903) differs from the degree of n.

Original entry on oeis.org

0, 1, 1, 4, 1, 5, 1, 12, 6, 7, 1, 16, 1, 9, 8, 32, 1, 21, 1, 24, 7, 13, 1, 44, 10, 8, 27, 32, 1, 31, 1, 80, 9, 19, 12, 96, 1, 7, 16, 68, 1, 41, 1, 48, 39, 25, 1, 608, 14, 39, 20, 56, 1, 81, 16, 92, 13, 31, 1, 96, 1, 9, 51, 640, 18, 61, 1, 72, 8, 59, 1, 156, 1, 16, 55, 80, 18, 71, 1, 3424, 108, 43, 1, 128, 13, 45, 32, 140, 1, 123, 20, 96, 19
Offset: 1

Views

Author

Antti Karttunen, Oct 14 2019

Keywords

Examples

			For n = 3, 3 is a prime, thus a(3) = 1.
For n = 4, A003415(4) = 4, thus as it is among the fixed points of A003415 and a(4) = 4.
For n = 8 = 2^3, its "degree" is A051903(33) = 3, but A003415(8) = 12 = 2^2 * 3, with degree 2, thus a(8) = 12.
For n = 21 = 3*7, A051903(21) = 1, the first derivative A003415(21) = 10 = 2*5 is of the same degree as A051903(10) = 1, but then continuing, we have A003415(10) = 7, which is a prime, thus a(21) = 7.
For n = 33 = 3*11, A051903(33) = 1, A003415(33) = 14 = 2*7, is of the same degree, but on the second iteration, A003415(14) = 9 = 3^2, with A051903(9) = 2, different from the initial degree, thus a(33) = 9.
		

Crossrefs

Cf. A328384 (the number of iterations needed to reach such a number).

Programs

  • PARI
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A051903(n) = if((1==n),0,vecmax(factor(n)[, 2]));
    A328385(n) = { my(d=A051903(n), u=A003415(n)); while(u && (u!=n) && !isprime(u) && A051903(u)==d, n = u; u = A003415(u)); (u); };

Formula

a(1) = 0 [as here the degrees of 0 and 1 are considered different].
a(p) = 1 for all primes.
a(A051674(n)) = A051674(n).
a(A157037(n)) = A003415(A157037(n)), a prime.
a(A328252(n)) = A003415(A328252(n)), a squarefree number.
a(n) = A003415^(k)(n), when k = abs(A328384(n)). [Taking the abs(A328384(n))-th arithmetic derivative of n gives a(n)]
Showing 1-6 of 6 results.