OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
R:= NULL: count:= 0:
for m from 2 while count < 100 do
S:= select(t -> igcd(t, m-t)=1, [$1..m-1]);
count:= count+nops(S);
if m::even then R:= R, op(S) else R:= R, seq(m-t, t=S) fi;
od:
R; # Robert Israel, Oct 09 2023
PROG
(Python)
from math import gcd
for s in range(2, 100, 2):
for i in range(1, s):
if gcd(i, s - i) != 1: continue
print(i)
for i in range(s, 0, -1):
if gcd(i, s + 1 - i) != 1: continue
print(i)
# Hiroaki Yamanouchi, Oct 06 2014
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Ron R. King, Mar 07 2009
EXTENSIONS
A-number in cross-reference corrected by R. J. Mathar, Sep 23 2009
a(19)-a(20) corrected and a(58)-a(82) added by Hiroaki Yamanouchi, Oct 06 2014
Name corrected by Andrey Zabolotskiy, Oct 10 2023
STATUS
approved