login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A352888 Lexicographically earliest infinite sequence such that a(i) = a(j) => A278219(A109812(i)) = A278219(A109812(j)), for all i, j >= 1. 4

%I #9 Apr 07 2022 12:15:37

%S 1,2,2,1,2,3,4,2,5,6,7,5,6,5,2,1,5,6,4,3,7,6,4,8,7,6,5,1,2,9,10,7,11,

%T 12,6,9,13,7,3,5,6,7,6,5,6,9,4,6,9,2,6,12,6,5,11,7,13,14,7,15,13,12,

%U 16,9,14,11,12,5,6,7,11,12,6,5,5,1,4,13,7,8,15,16,12,11,9,10,12,11,12,10,14,17,14,16,18

%N Lexicographically earliest infinite sequence such that a(i) = a(j) => A278219(A109812(i)) = A278219(A109812(j)), for all i, j >= 1.

%C Restricted growth sequence transform of A278219(A109812(n)).

%C For all i, j: a(i) = a(j) => A352889(i) = A352889(j).

%H Antti Karttunen, <a href="/A352888/b352888.txt">Table of n, a(n) for n = 1..100000</a>

%H <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>

%o (PARI)

%o rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om,invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om,invec[i],i); outvec[i] = u; u++ )); outvec; };

%o v109812 = readvec("b109812_to10e5.txt"); \\ Prepared from b-file data with gawk ' { print $2 } '

%o up_to = #v109812;

%o A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t };

%o A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523

%o A003188(n) = bitxor(n, n>>1);

%o A278219(n) = A046523(A005940(1+A003188(n)));

%o A109812(n) = v109812[n];

%o v352888 = rgs_transform(vector(up_to, n, A278219(A109812(n))));

%o A352888(n) = v352888[n];

%Y Cf. A109812, A278219, A352889.

%Y Cf. also A286619, A351578, A351963.

%K nonn,base,look

%O 1,2

%A _Antti Karttunen_, Apr 07 2022

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 20 11:01 EDT 2024. Contains 375325 sequences. (Running on oeis4.)