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!)
A358874 Inverse permutation to A076034. 2
1, 2, 3, 4, 5, 7, 6, 11, 12, 16, 8, 22, 9, 29, 30, 37, 10, 46, 13, 56, 17, 67, 14, 79, 15, 92, 38, 106, 18, 121, 19, 137, 57, 154, 23, 172, 20, 191, 68, 211, 21, 232, 24, 254, 93, 277, 25, 301, 39, 326, 107, 352, 26, 379, 40, 407, 138, 436, 27, 466, 28, 497 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Rémy Sigrist, PARI program
FORMULA
a(2*n) = A000124(n).
a(p) < a(n) if p < n with p a prime number.
EXAMPLE
A076034(42) = 101, so a(101) = 42.
MAPLE
S:=[$1..10000]:
V:= Vector(10000): ok:= true;
for n from 1 while ok do
A:= [S[1]]; R:= 1; count:= 1;
for k from 2 while count < n do
if k > nops(S) then ok:= false; break fi;
if andmap(t -> igcd(t, S[k])=1, A) then count:= count+1; A:= [op(A), S[k]]; R:= R, k; fi
od;
S:= subsop(op(map(t -> t=NULL, [R])), S);
for i from 1 to nops(A) do
V[A[i]]:= n*(n-1)/2+i
od
od:
if member(0, V, 'q') then convert(V[1..q-1], list)
else convert(V, list)
fi; # Robert Israel, Dec 04 2022
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A278505 A278506 A255546 * A080688 A082025 A076034
KEYWORD
nonn,look
AUTHOR
Rémy Sigrist, Dec 04 2022
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 25 01:06 EDT 2024. Contains 371964 sequences. (Running on oeis4.)