login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A286617 Restricted growth sequence of A278217 (prime-signature of A075159(1+n)). 6
1, 2, 2, 3, 4, 2, 3, 5, 6, 4, 2, 4, 6, 3, 5, 7, 8, 6, 4, 9, 4, 2, 4, 6, 10, 6, 3, 6, 8, 5, 7, 11, 12, 8, 6, 13, 9, 4, 9, 13, 6, 4, 2, 4, 9, 4, 6, 8, 14, 10, 6, 13, 6, 3, 6, 10, 14, 8, 5, 8, 12, 7, 11, 15, 16, 12, 8, 17, 13, 6, 13, 18, 13, 9, 4, 9, 19, 9, 13, 17, 8, 6, 4, 9, 4, 2, 4, 6, 13, 9, 4, 9, 13, 6, 8, 12, 20, 14, 10, 18, 13, 6, 13, 18, 10, 6, 3, 6, 13 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Antti Karttunen, Table of n, a(n) for n = 0..65537

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])); }

A005811(n) = hammingweight(bitxor(n, n>>1));  \\ This function from Gheorghe Coserea, Sep 03 2015

A286468(n) = { my(p=((n+1)%2), i=0, m=1); while(n>0, if(((n%2)==p), m *= prime(i), p = (n%2); i = i+1); n = n\2); m };

A075157(n) = if(!n, n, (prime(A005811(n))*A286468(n))-1);

A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); };  \\ This function from Charles R Greathouse IV, Aug 17 2011

A278217(n) = A046523(1+A075157(n));

write_to_bfile(0, rgs_transform(vector(65538, n, A278217(n-1))), "b286617.txt");

CROSSREFS

Cf. A075159, A278217, A286539, A286619, A286622.

Sequence in context: A127731 A159978 A230546 * A328446 A257062 A098223

Adjacent sequences:  A286614 A286615 A286616 * A286618 A286619 A286620

KEYWORD

nonn,look

AUTHOR

Antti Karttunen, May 17 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 22 12:42 EST 2020. Contains 332136 sequences. (Running on oeis4.)