Perfect pyramids X64258


Statement
 

pdf   zip

html

Input

The input will be a single line containing a positive number greater or equal than 1.

Output

The output will print "True" if the input is the number of dots of the side of a perfect pyramid, or "False" otherwise.

Public test cases
  • Input

    6
    

    Output

    True
    
  • Input

    5706588888630
    

    Output

    True
    
  • Input

    5706588888631
    

    Output

    False
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Haskell Java Python