First cubes P69277


Statement
 

pdf   zip

html

Write a program that reads a number n, and prints 03,13,…,(n−1)3,n3.

Input

Input consists of a natural number n.

Output

Print a line with 03,13,…,(n−1)3,n3. Separate the numbers with commas.

Public test cases
  • Input

    5
    

    Output

    0,1,8,27,64,125
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    C C++ Java PHP Python Whitespace