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!)
A295876 Restricted growth sequence transform of A023900, Product_{p|n} (1-p). 4
1, 2, 3, 2, 4, 5, 6, 2, 3, 7, 8, 5, 9, 10, 11, 2, 12, 5, 13, 7, 14, 15, 16, 5, 4, 14, 3, 10, 17, 18, 19, 2, 20, 21, 22, 5, 23, 24, 22, 7, 25, 9, 26, 15, 11, 27, 28, 5, 6, 7, 29, 14, 30, 5, 31, 10, 32, 33, 34, 18, 35, 36, 14, 2, 37, 38, 39, 21, 40, 41, 42, 5, 43, 32, 11, 24, 44, 41, 45, 7, 3, 31, 46, 9, 47, 48, 49, 15, 50, 18, 51, 27, 44, 52, 51, 5, 53, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For all i, j:
a(i) = a(j) => A092248(i) = A092248(j).
a(i) = a(j) => A295877(i) = A295877(j).
LINKS
PROG
(PARI)
allocatemem(2^30);
up_to = 65536;
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; };
write_to_bfile(start_offset, vec, bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }
A023900(n) = sumdivmult(n, d, d*moebius(d)); \\ This function from Charles R Greathouse IV, Sep 09 2014
write_to_bfile(1, rgs_transform(vector(up_to, n, A023900(n))), "b295876.txt");
CROSSREFS
Sequence in context: A336150 A336151 A286621 * A336147 A322590 A325381
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 29 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 April 24 18:05 EDT 2024. Contains 371962 sequences. (Running on oeis4.)