Skip to main content
added 32 characters in body
Source Link
Razetime
  • 27.6k
  • 3
  • 31
  • 77

Husk, 1713 bytes

Wo<0-Goḟε§e+`-1İ\W<Goḟε§e+≠1İ\ 

Try it online!Try it online!

An infinite list.

woo, it works.

-2 bytes from ovs.

-4 bytes from Dominic Van Essen.

Explanation

Wo<0-Goḟε§e+`-1İ\ 1İ\ [1/2,1/3,1/4... Go 1 scan with 1 as intial value §e+`- [a+b,a-b] ḟε first element <=1 Wo indices of pairs where - difference is <0 < 0 (negative) 

Husk, 17 bytes

Wo<0-Goḟε§e+`-1İ\ 

Try it online!

An infinite list.

woo, it works.

-2 bytes from ovs.

Explanation

Wo<0-Goḟε§e+`-1İ\ 1İ\ [1/2,1/3,1/4... Go 1 scan with 1 as intial value §e+`- [a+b,a-b] ḟε first element <=1 Wo indices of pairs where - difference is <0 < 0 (negative) 

Husk, 13 bytes

W<Goḟε§e+≠1İ\ 

Try it online!

An infinite list.

woo, it works.

-2 bytes from ovs.

-4 bytes from Dominic Van Essen.

Explanation

Wo<0-Goḟε§e+`-1İ\ 1İ\ [1/2,1/3,1/4... Go 1 scan with 1 as intial value §e+`- [a+b,a-b] ḟε first element <=1 Wo indices of pairs where - difference is <0 < 0 (negative) 
deleted 159 characters in body
Source Link
Razetime
  • 27.6k
  • 3
  • 31
  • 77

Husk, 1917 bytes

Wo<0-ΘGoḟε§e+`Goḟε§e+`-0tİ\1İ\ 

Try it online!Try it online!

An infinite list.

woo, it works. Husk's harmonic sequence starts with 1/1, and W gives decremented indices, so that cost a few

-2 bytes from ovs.

Explanation

Wo<0-ΘGoḟε§e+`Goḟε§e+`-0tİ\1İ\   tİ\1İ\ [1/2,1/3,1/4... Go  0 1 scan with 01 as intial value   §e+`-  [a+b,a-b]   ḟε  first element <=1 Θ prepend 0 to offset indices Wo  indices of pairs where -  difference is <0  < 0 (negative) 

Husk, 19 bytes

Wo<0-ΘGoḟε§e+`-0tİ\ 

Try it online!

An infinite list.

woo, it works. Husk's harmonic sequence starts with 1/1, and W gives decremented indices, so that cost a few bytes.

Explanation

Wo<0-ΘGoḟε§e+`-0tİ\   tİ\ [1/2,1/3,1/4... Go  0  scan with 0 as intial value   §e+`-  [a+b,a-b]   ḟε  first element <=1 Θ prepend 0 to offset indices Wo  indices of pairs where -  difference is <0  < 0 (negative) 

Husk, 17 bytes

Wo<0-Goḟε§e+`-1İ\ 

Try it online!

An infinite list.

woo, it works.

-2 bytes from ovs.

Explanation

Wo<0-Goḟε§e+`-1İ\ 1İ\ [1/2,1/3,1/4... Go 1 scan with 1 as intial value §e+`- [a+b,a-b] ḟε first element <=1 Wo indices of pairs where - difference is <0 < 0 (negative) 
Source Link
Razetime
  • 27.6k
  • 3
  • 31
  • 77

Husk, 19 bytes

Wo<0-ΘGoḟε§e+`-0tİ\ 

Try it online!

An infinite list.

woo, it works. Husk's harmonic sequence starts with 1/1, and W gives decremented indices, so that cost a few bytes.

Explanation

Wo<0-ΘGoḟε§e+`-0tİ\ tİ\ [1/2,1/3,1/4... Go 0 scan with 0 as intial value §e+`- [a+b,a-b] ḟε first element <=1 Θ prepend 0 to offset indices Wo indices of pairs where - difference is <0 < 0 (negative)