#Dyalog APL, 15 bytes
Dyalog APL, 15 bytes
(+/÷⍴)∘∊1=⍳∘.∨⍳
Pretty straightforward. It's a monadic function train. Iota is the numbers from 1 to input, so we take the outer product by gcd, then count the proportion of ones.
#Dyalog APL, 15 bytes
(+/÷⍴)∘∊1=⍳∘.∨⍳
Pretty straightforward. It's a monadic function train. Iota is the numbers from 1 to input, so we take the outer product by gcd, then count the proportion of ones.
Dyalog APL, 15 bytes
(+/÷⍴)∘∊1=⍳∘.∨⍳
Pretty straightforward. It's a monadic function train. Iota is the numbers from 1 to input, so we take the outer product by gcd, then count the proportion of ones.
#Dyalog APL, 15 bytes
(+/÷⍴)∘∊1=⍳∘.∨⍳
Pretty straightforward. It's a monadic function train. Iota is the numbers from 1 to input, so we take the outer product by gcd, then count the proportion of ones.