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!)
A286549 Restricted growth sequence of A286548 (A003188(n) - n). 3
1, 1, 2, 3, 4, 4, 3, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 14, 7, 16, 16, 5, 10, 17, 17, 18, 19, 20, 20, 21, 22, 23, 23, 22, 24, 25, 25, 26, 27, 28, 28, 29, 13, 30, 30, 11, 31, 32, 32, 31, 33, 34, 34, 35, 36, 37, 37, 38, 39, 40, 40, 41, 42, 43, 43, 42, 44, 45, 45, 46, 47, 48, 48, 49, 50, 51, 51, 52, 53, 54, 54, 53, 46, 55, 55, 44, 49, 56, 56, 27 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
PROG
(PARI)
rgs_transform(invec) = { my(occurrences = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(occurrences, invec[i]), my(pp = mapget(occurrences, invec[i])); outvec[i] = outvec[pp] , mapput(occurrences, invec[i], i); outvec[i] = u; u++ )); outvec; };
write_to_bfile(start_offset, vec, bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }
A003188(n) = bitxor(n, n>>1);
A286548(n) = (A003188(n)-n);
write_to_bfile(0, rgs_transform(vector(65536, n, A286548(n-1))), "b286549.txt");
CROSSREFS
Sequence in context: A101083 A097935 A188940 * A286551 A290097 A364392
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 18 2017
STATUS
approved

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 March 29 09:59 EDT 2024. Contains 371268 sequences. (Running on oeis4.)