Problem A
Three Powers
Consider the set of all non-negative integer powers of 3.
Consider the sequence of all subsets of
Input
Each line of input contains a number
Output
For each line of input, output a single line displaying the
Sample Input 1 | Sample Output 1 |
---|---|
1 7 14 783 1125900981634049 0 |
{ } { 3, 9 } { 1, 9, 27 } { 3, 9, 27, 6561, 19683 } { 59049, 3486784401, 205891132094649, 717897987691852588770249 } |