Periodic numbers X61067


Statement
 

pdf   zip

html

Input

The input will be a single positive integer number.

Output

The output will print a single line stating if the number is periodic:     The number x is periodic and its period is y    

Otherwise, the output will be:     The number x is NOT periodic    

Public test cases
  • Input

    142857
    

    Output

    The number 142857 is NOT periodic
    
  • Input

    1212
    

    Output

    The number 1212 is periodic and its period is 12
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++ Python
    User solutions
    C++ Python