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.

A259934 Infinite sequence starting with a(0)=0 such that A049820(a(k)) = a(k-1) for all k>=1, where A049820(n) = n - (number of divisors of n).

Original entry on oeis.org

0, 2, 6, 12, 18, 22, 30, 34, 42, 46, 54, 58, 62, 70, 78, 90, 94, 102, 106, 114, 118, 121, 125, 129, 144, 152, 162, 166, 174, 182, 190, 194, 210, 214, 222, 230, 236, 242, 250, 254, 270, 274, 282, 294, 298, 302, 310, 314, 330, 342, 346, 354, 358, 366, 374, 390, 394, 402, 410, 418, 426, 434, 442, 446, 462, 466, 474, 486, 494, 510, 522, 530, 546, 558, 562, 566, 574, 582, 590
Offset: 0

Views

Author

Max Alekseyev, Jul 09 2015

Keywords

Comments

Equivalently, satisfies the property: A000005(a(n)) = a(n)-a(n-1). The first differences a(n)-a(n-1) are given in A259935.
V. S. Guba (2015) proved that such an infinite sequence exists. Numerical evidence suggests that it may also be unique -- is it? All terms below 10^10 are defined uniquely.
If the current definition does not uniquely define the sequence, the "lexicographically earliest" condition may be added to make the sequence well-defined.
From Vladimir Shevelev, Jul 21 2015: (Start)
If a(k), a(k+1), a(k+2) is an arithmetic progression, then a(k+1) is in A175304.
Indeed, by the definition of this sequence, a(n)-a(n-1) = d(a(n)), for all n>=1, where d(n) = A000005(n). Hence, have a(k+1) - a(k) = a(k+2) - a(k+1) = d(a(k+1)) = d(a(k+2)). So a(k+1) + d(a(k+2)) = a(k+2) and a(k+1) + d(a(k+1)) = a(k+2).
Therefore, d(a(k+1) + d(a(k+1))) = d(a(k+2))= d(a(k+1)), i.e., a(k+1) is in A175304. Thus, if there are infinitely many pairs of the same consecutive terms of A259935, then A175304 is infinite (see there my conjecture). (End)
From Antti Karttunen, Nov 27 2015: (Start)
If multiple apparently infinite branches would occur at some point of computing, then even if the "lexicographically earliest" condition were then added to the definition, it would not help us much (when computing the sequence), as we would still not know which of the said branches were truly infinite. [See also Max Alekseyev's latter Jul 9 2015 posting on SeqFan-list, where he notes the same thing.] Note that many of the derived sequences tacitly assume that the uniqueness-conjecture is true. See also comments at A262693 and A262896.
One sufficient (but not a necessary) condition for the uniqueness of this sequence is that the sequence A262509 has infinite number of terms. Please see further comments there.
The graph of sequence exhibits two markedly different slopes, depending on whether it is on the "fast lane" of A049820 (even numbers) or the "slow lane" [odd numbers, for example when traversing the 1356 odd terms from 123871 to 113569 at range a(9859) .. a(8504)]. See A263086/A263085 for the "average cumulative speed difference" between the lanes. In general, slow and fast lane stay separate, except when they terminate into one of the squares (A262514) that work as "exchange ramps", forcing the parity (and thus the speed) to change. In average, the odd squares are slightly better than the even squares in attracting lanes going towards smaller numbers (compare A263253 to A263252). The cumulative effect of this bias is that the odd terms are much rarer in this sequence than the even terms (compare A263278 to A262516).
(End)

Crossrefs

Cf. A000005, A049820, A060990, A259935 (first differences).
Topmost row of A263255. Cf. also irregular tables A263267 & A263265 and array A262898.
Cf. A262693 (characteristic function).
Cf. A155043, A262694, A262904 (left inverses).
Cf. A262514 (squares present), A263276 (their positions), A263277.
Cf. A262517 (odd terms).
Cf. A262509, A262510, A262897 (other subsequences).
Cf. also A175304, A260257, A262680.
Cf. also A262679, A262896 (see the C++ program there).
No common terms with A045765 or A262903.
Positions of zeros in A262522, A262695, A262696, A262697, A263254.
Various metrics concerning finite side-trees: A262888, A262889, A262890.
Cf. also A262891, A262892 and A262895 (cf. its graph).
Cf. A260084, A260124 (variants).
Cf. also A179016 (a similar "beanstalk trunk sequence" but with more tractable and regular behavior).

Programs

Formula

From Antti Karttunen, Nov 27 2015: (Start)
Other identities and observations. For all n >= 0:
a(n) = A262679(A262896(n)).
A155043(a(n)) = A262694(a(n)) = A262904(a(n)) = n.
A261089(n) <= a(n) <= A262503(n). [A261103 and A262506 give the distances of a(n) to these bounds.]
(End)

A262509 Numbers n such that there is no other number k for which A155043(k) = A155043(n).

Original entry on oeis.org

0, 119143, 119147, 119163, 119225, 119227, 119921, 119923, 120081, 120095, 120097, 120101, 120281, 120293, 120349, 120399, 120707, 120747, 120891, 120895, 120903, 120917, 120919, 121443, 121551, 121823, 122079, 122261, 122263, 122273, 122277, 122813, 122961, 123205, 123213, 123223, 123237, 123257, 123765, 24660543, 24660549, 24662311, 24662329, 24663759, 24664997, 24665023, 24665351
Offset: 0

Views

Author

Antti Karttunen, Sep 25 2015

Keywords

Comments

Starting offset is zero, because a(0) = 0 is a special case in this sequence.
Numbers where A155043 takes a unique value. (Those values are given by A262508.)
Numbers n such that there does not exist any other number h from which one could reach zero in exactly the same number of steps as from n by repeatedly applying the map where k is replaced by k - A000005(k) = A049820(k). Thus in the tree where zero is the root and parent-child relation is given by A049820(child) = parent, all the numbers > n+t (where t is a small value depending on n) have n as their common ancestor. As it is guaranteed that there is at least one infinite path in such a tree, any n in this sequence can be neither a leaf nor any other vertex in a finite side-tree, as then at least one node in the infinite part would have the same distance to the root, thus it must be that n itself is in the infinite part and thus has an infinite number of descendant vertices. Also, for the same reason, the tree cannot branch to two infinite parts from any ancestor of n (which are nodes nearer to the root of the tree, zero).
From the above it follows that if this sequence is infinite, then A259934 is guaranteed to be the only infinite sequence which starts with a(0)=0 and satisfies the condition A049820(a(k)) = a(k-1) for all k>=1, where A049820(n) = n-d(n) and d(n) is the number of divisors of n (A000005). This is a sufficient condition for the uniqueness of A259934, although not necessary. See e.g. A179016 which is the unique infinite solution to a similar problem, even though A086876 contains no ones after its two initial terms.
Is it possible for any even terms to occur after zero? If not, then apart from zero, this would be a subsequence of A262517.

Crossrefs

Subsequence of A259934, A261089, A262503 and A262513.
Cf. A262510 (gives the parent nodes for the terms a(1) onward), A262514, A262516, A262517.
Cf. also A086876, A179016.

Programs

  • PARI
    \\ Compute A262508 and A262509 at the same time:
    allocatemem((2^31)+(2^30));
    \\ The limits used are quite ad hoc. Beware of the horizon-effect if you change these.
    \\ As a post-check, test that A262509(n) = A259934(A262508(n)) for all the terms produced by this program.
    uplim1 = 43243200 + 672; \\ = A002182(54) + A002183(54).
    uplim2 = 36756720; \\ = A002182(53).
    uplim3 = 10810800; \\
    v155043 = vector(uplim1);
    v262503 = vector(uplim3);
    v262507 = vector(uplim3);
    v155043[1] = 1; v155043[2] = 1;
    for(i=3, uplim1, v155043[i] = 1 + v155043[i-numdiv(i)]);
    A155043 = n -> if(!n,n,v155043[n]);
    for(i=1, uplim1, v262503[v155043[i]] = i; v262507[v155043[i]]++; if(!(i%1048576),print1(i,", ")));
    A262503 = n -> if(!n,n,v262503[n]);
    A262507 = n -> if(!n,1,v262507[n]);
    k=0; for(n=0, uplim3, if((1==A262507(n)) && (A262503(n) <= uplim2), write("b262508.txt", k, " ", n); write("b262509.txt", k, " ", A262503(n)); k++));
    
  • Scheme
    (define (A262509 n) (A261089 (A262508 n)))

Formula

a(n) = A261089(A262508(n)) = A262503(A262508(n)) = A259934(A262508(n)).

A262508 Numbers that occur only once in A155043; positions of zeros in A262505, ones in A262507.

Original entry on oeis.org

0, 9236, 9237, 9238, 9247, 9248, 9330, 9331, 9353, 9356, 9357, 9358, 9385, 9388, 9399, 9407, 9446, 9453, 9476, 9477, 9478, 9480, 9481, 9547, 9561, 9590, 9626, 9652, 9653, 9655, 9656, 9722, 9743, 9775, 9776, 9778, 9781, 9786, 9844, 1308289, 1308290, 1308465, 1308468, 1308592, 1308713, 1308717, 1308750, 1308809, 1308815, 1309104, 1309162, 1309214, 1309299, 1309397, 1309464, 1309465, 1309536, 1309537, 1309640, 1309641, 1309642, 1309648, 1309675, 1309714, 1309751, 1309879, 1309883, 1310010, 1310011
Offset: 0

Views

Author

Antti Karttunen, Sep 25 2015

Keywords

Comments

Numbers n for which there exists exactly one natural number x from which one can reach zero in n steps by setting first k = x and then repeatedly applying the map where k is replaced with k - A000005(k). See A262509 for the corresponding x's and implications concerning A259934.
Starting offset is zero, because a(0) = 0 is a special case in this sequence.

Crossrefs

Programs

  • PARI
    \\ See the Pari-program given in A262509, which also computes the terms of this sequence at the same time.

A262511 Numbers k for which there is exactly one solution to x - d(x) = k, where d(k) is the number of divisors of k (A000005). Positions of ones in A060990.

Original entry on oeis.org

2, 3, 4, 5, 9, 10, 12, 14, 15, 16, 18, 21, 23, 26, 30, 31, 32, 41, 42, 44, 45, 47, 53, 54, 59, 60, 61, 71, 72, 73, 76, 77, 80, 82, 83, 84, 86, 89, 90, 92, 93, 94, 95, 97, 99, 101, 104, 105, 106, 110, 115, 119, 121, 122, 127, 135, 139, 146, 148, 149, 151, 154, 158, 161, 169, 171, 173, 176, 177, 183, 186, 188, 189, 190, 191, 192, 194, 195, 199, 200, 202
Offset: 1

Views

Author

Antti Karttunen, Sep 25 2015

Keywords

Crossrefs

Cf. A262512 (gives the corresponding x).
Cf. A262510 (a subsequence).
Subsequence of A236562.

Programs

  • PARI
    allocatemem(123456789);
    uplim = 14414400 + 504; \\ = A002182(49) + A002183(49).
    v060990 = vector(uplim);
    for(n=3, uplim, v060990[n-numdiv(n)]++);
    A060990 = n -> if(!n,2,v060990[n]);
    uplim2 = 14414400;
    n=0; k=1; while(n <= uplim2, if(1==A060990(n), write("b262511_big.txt", k, " ", n); k++); n++;);
    
  • Scheme
    ;; With Antti Karttunen's IntSeq-library.
    (define A262511 (ZERO-POS 1 1 (COMPOSE -1+ A060990)))

Formula

Other identities. For all n >= 1:
a(n) = A049820(A262512(n)).

A262517 Odd terms in A259934.

Original entry on oeis.org

121, 125, 129, 113569, 113573, 113589, 113593, 113601, 113625, 113629, 113645, 113647, 113651, 113659, 113663, 113667, 113679, 113715, 113717, 113729, 113731, 113739, 113743, 113747, 113749, 113757, 113765, 113781, 113783, 113791, 113799, 113815, 113827, 113831, 113839, 113847, 113851, 113859, 113867, 113871, 113877, 113881, 113885, 113889, 113925, 113931, 113935, 113943, 113967, 113969, 113973, 113981, 113983, 113987, 113991
Offset: 1

Views

Author

Antti Karttunen, Sep 26 2015

Keywords

Comments

Odd terms of A259934 appear in separate runs, where the first term of each run is always an odd square, like 121 and 113569 are. See A262514 for the explanation.

Crossrefs

Cf. A262509, A262510 (subsequences?).

A262897 Nonbranching nodes in the infinite trunk (A259934) of the tree generated by edge-relation A049820(child) = parent: a(n) = A259934(A262892(n)).

Original entry on oeis.org

2, 12, 18, 30, 42, 54, 90, 94, 106, 121, 190, 194, 210, 236, 242, 254, 298, 302, 342, 346, 354, 366, 374, 390, 410, 426, 442, 466, 494, 530, 546, 558, 562, 566, 574, 606, 650, 658, 710, 716, 730, 746, 914, 942, 986, 1030, 1038, 1042, 1052, 1058, 1090, 1114, 1134, 1146, 1240, 1250, 1266, 1278, 1286, 1310, 1354, 1370, 1378, 1418, 1426, 1450, 1454, 1490, 1562, 1650, 1662, 1670, 1676, 1694, 1706
Offset: 1

Views

Author

Antti Karttunen, Oct 06 2015

Keywords

Comments

Equally, numbers n for which A060990(n)*A262693(n) = 1, thus an intersection of A262511 and A259934.
The next odd term after a(10) = 121 occurs at a(3372) = 113569.

Crossrefs

Formula

a(n) = A259934(A262892(n)).
Showing 1-6 of 6 results.