Skip to main content
4 of 4
added 123 characters in body
Giuseppe
  • 29.4k
  • 3
  • 33
  • 106

R, 32 31 29 bytes

function(n)n%in%choose(3:n,3) 

Try it online!

Based on the observation on wiki or OEIS that \$Te_n={{n+2}\choose{3}}\$; : ranges downwards for the case of \$n=1\$.

Giuseppe
  • 29.4k
  • 3
  • 33
  • 106