%I #91 May 08 2024 10:28:28
%S 0,2,6,12,18,22,30,34,42,46,54,58,62,70,78,90,94,102,106,114,118,121,
%T 125,129,144,152,162,166,174,182,190,194,210,214,222,230,236,242,250,
%U 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
%N 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).
%C Equivalently, satisfies the property: A000005(a(n)) = a(n)-a(n-1). The first differences a(n)-a(n-1) are given in A259935.
%C 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.
%C If the current definition does not uniquely define the sequence, the "lexicographically earliest" condition may be added to make the sequence well-defined.
%C From _Vladimir Shevelev_, Jul 21 2015: (Start)
%C If a(k), a(k+1), a(k+2) is an arithmetic progression, then a(k+1) is in A175304.
%C 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).
%C 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)
%C From _Antti Karttunen_, Nov 27 2015: (Start)
%C 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.
%C 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.
%C 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).
%C (End)
%H Robert Israel, <a href="/A259934/b259934.txt">Table of n, a(n) for n = 0..64800</a>
%H M. Alekseyev et al., <a href="http://list.seqfan.eu/oldermail/seqfan/2015-July/thread.html#15037">Apparently unique infinite sequences related to the sum of divisors</a>, Discussion in SeqFan mailing list, 2015.
%H Michael De Vlieger, <a href="https://oeis.org/A263267/a263267_3.pdf">Poster illustrating A259934 and A263267</a>
%H V. S. Guba et al., <a href="http://math.hashcode.ru/questions/66579/%D1%82%D0%B5%D0%BE%D1%80%D0%B8%D1%8F-%D1%87%D0%B8%D1%81%D0%B5%D0%BB-%D0%BF%D0%BE%D1%81%D0%BB%D0%B5%D0%B4%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D1%81%D1%82%D1%8C-%D0%B8-%D0%B4%D0%B5%D0%BB%D0%B8%D1%82%D0%B5%D0%BB%D0%B8">Sequence and divisors</a>, 2015. (in Russian)
%F From _Antti Karttunen_, Nov 27 2015: (Start)
%F Other identities and observations. For all n >= 0:
%F a(n) = A262679(A262896(n)).
%F A155043(a(n)) = A262694(a(n)) = A262904(a(n)) = n.
%F A261089(n) <= a(n) <= A262503(n). [A261103 and A262506 give the distances of a(n) to these bounds.]
%F (End)
%p N:= 10^4: # to get "guaranteed unique" terms <= N
%p S:= Vector(N,datatype=integer[1]):
%p for n from N+1 to 2*N do
%p k:= n - numtheory:-tau(n);
%p if k <= N then S[k]:= S[k]+1; B[k]:= n; fi;
%p od:
%p for n from N to 3 by -1 do
%p if S[n] >= 1 then
%p k:= n - numtheory:-tau(n);
%p S[k]:= S[k]+1; B[k]:= n;
%p fi
%p od:
%p A[0]:= 0: A[1]:= 2:
%p for n from 2 do
%p b:= B[A[n-1]];
%p if b > N or S[b] > 1 then break fi;
%p A[n]:= b;
%p od:
%p seq(A[i],i=0..n-1); # _Robert Israel_, Jul 09 2015
%t NN = 10^4; (* to get "guaranteed unique" terms <= NN *)
%t Clear[A, B, S]; S[_]=0; For[n = NN+1, n <= 2*NN, n++, k = n-DivisorSigma[0, n]; If[k <= NN, S[k] = S[k]+1; B[k]=n]]; For[n=NN, n >= 3, n--, If[S[n] >= 1 , k = n-DivisorSigma[0, n]; S[k] = S[k]+1; B[k]=n]]; A[0]=0; A[1]=2; For[n=2, True, n++, b = B[A[n-1]]; If[b>NN || S[b]>1, Break[]]; A[n]=b]; Table[A[i], {i, 0, n-1}] (* _Jean-François Alcover_, Jul 22 2015, after _Robert Israel_ *)
%Y Cf. A000005, A049820, A060990, A259935 (first differences).
%Y Topmost row of A263255. Cf. also irregular tables A263267 & A263265 and array A262898.
%Y Cf. A262693 (characteristic function).
%Y Cf. A155043, A262694, A262904 (left inverses).
%Y Cf. A262514 (squares present), A263276 (their positions), A263277.
%Y Cf. A262517 (odd terms).
%Y Cf. A262509, A262510, A262897 (other subsequences).
%Y Cf. also A175304, A260257, A262680.
%Y Cf. A261089, A261103, A262503, A262506, A262516, A263279, A263280, A263085, A263086, A263253, A263257, A263278.
%Y Cf. also A262679, A262896 (see the C++ program there).
%Y No common terms with A045765 or A262903.
%Y Positions of zeros in A262522, A262695, A262696, A262697, A263254.
%Y Various metrics concerning finite side-trees: A262888, A262889, A262890.
%Y Cf. also A262891, A262892 and A262895 (cf. its graph).
%Y Cf. A260084, A260124 (variants).
%Y Cf. also A179016 (a similar "beanstalk trunk sequence" but with more tractable and regular behavior).
%K nonn,nice
%O 0,2
%A _Max Alekseyev_, Jul 09 2015