Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 2
Neil A.
  • 2.1k
  • 8
  • 23

05AB1E, 7 bytes

8*1+t.ï

Try it online!

n is triangular if sqrt(8n + 1) is an integer

How it works

8* # multiply implicit input by 8
 1+ # add one
 t # sqrt
 .ï # is integer
Neil A.
  • 2.1k
  • 8
  • 23

AltStyle によって変換されたページ (->オリジナル) /