A328142 Elements of cycles for iterations of A329623: n -> |n - concat(sum of adjacent digits of n)|.
1, 2, 3, 4, 5, 6, 7, 8, 9, 182, 273, 364, 455, 546, 637, 728, 1728, 2637, 3546, 4455, 5364, 6273, 7182, 17182, 26273, 35364, 44455, 53546, 62637, 71728, 171728, 262637, 353546, 444455, 535364, 626273, 717182, 1717182, 2626273, 3535364, 4444455, 5353546, 6262637, 7171728
Offset: 1
Examples
The single-digit numbers 1, ..., 9 and the numbers f(k) = 4*(10^k-1)/9 + 11, k >= 3, are fixed points of A329623. Indeed, for f(k) = 4...455 we have A053392(f(k)) = 8...910 = 2*f(k), so A329623(f(k)) = 2*f(k) - f(k) = f(k). For a(10) = 182, we have A329623(182) = 728 and A329623(728) = 182, so these are members of the 2-cycle (182, 728). For a(11) = 273, we have A329623(273) = 637 and A329623(637) = 273, so these are members of the 2-cycle (273, 637). Similarly for all subsequent terms except the f(k) of the form 4...455.
Crossrefs
Programs
-
PARI
apply( {A328142(n)=if(n>9,fromdigits(vector((n+8)\/7,i,n=if(i>1, 8-n,(n+4)%7+1)))+11,n)}, [1..40]) \\ As far as there are no other terms than those described in COMMENTS. - M. F. Hasler, Dec 06 2019, replacing earlier code.
Comments