Find your mistakes from below:
Your output is not correct. Moreover, watch out for the proper use of spaces.
Your Output:
Code: Select all
{ }
{ 3, 9 }
{ 1, 9, 27 }
{ 3, 9, 27, 6561, 19683 }
{ 59049, 3486784401, 205891132094649, 717897987691852588770249 }
{ 3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, 177147, 531441, 1594323, 4782969, 14348907, 43046721, 129140163, 10460353203, 31381059609, 282429536481, 847288609443, 2541865828329, 68630377364883, 617673396283947, 1853020188851841, 5559060566555523, 150094635296999121, 450283905890997363, 452555153018976267, 36472996377170786403, 109418989131512359209, 984770902183611232881, 2954312706550833698643, 26588814358957503287787, 19383245667680019896796723, 581497373040059690390169, 1744492119120179071170507, 52334763327360537213511521, 4710128697246244834921603689, 14130386091738734504764811067 }
{ 3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, 177147, 531441, 1594323, 4782969, 14348907, 43046721, 129140163, 387420489, 10460353203, 31381059609, 94143178827, 282429536481, 7625597484987, 617673396283947, 16677181699666569, 12157665459056928801, 36472996377170786403, 2954312706550833698643, 79766443076872509863361, 239299329230617529590083, 717897987691852588770249, 581497373040059690390169, 1744492119120179071170507, 157004289982081611640534563, 14130386091738734504764811067, 1144561273430837494885949696427 }
Correct Output:
Code: Select all
{ }
{ 3, 9 }
{ 1, 9, 27 }
{ 3, 9, 27, 6561, 19683 }
{ 59049, 3486784401, 205891132094649, 717897987691852588770249 }
{ 3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, 177147, 531441, 1594323, 4782969, 14348907, 43046721, 129140163, 10460353203, 31381059609, 282429536481, 847288609443, 2541865828329, 68630377364883, 617673396283947, 1853020188851841, 5559060566555523, 150094635296999121, 450283905890997363, 4052555153018976267, 36472996377170786403, 109418989131512359209, 984770902183611232881, 2954312706550833698643, 26588814358957503287787, 19383245667680019896796723, 58149737003040059690390169, 174449211009120179071170507, 523347633027360537213511521, 4710128697246244834921603689, 14130386091738734504764811067 }
{ 3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, 177147, 531441, 1594323, 4782969, 14348907, 43046721, 129140163, 387420489, 1162261467, 3486784401, 10460353203, 31381059609, 94143178827, 282429536481, 847288609443, 2541865828329, 7625597484987, 22876792454961, 68630377364883, 205891132094649, 617673396283947, 1853020188851841, 5559060566555523, 16677181699666569, 50031545098999707, 150094635296999121, 450283905890997363, 1350851717672992089, 4052555153018976267, 12157665459056928801, 36472996377170786403, 109418989131512359209, 328256967394537077627, 984770902183611232881, 2954312706550833698643, 8862938119652501095929, 26588814358957503287787, 79766443076872509863361, 239299329230617529590083, 717897987691852588770249, 2153693963075557766310747, 6461081889226673298932241, 19383245667680019896796723, 58149737003040059690390169, 174449211009120179071170507, 523347633027360537213511521, 1570042899082081611640534563, 4710128697246244834921603689, 14130386091738734504764811067, 42391158275216203514294433201, 127173474825648610542883299603, 381520424476945831628649898809 }
hope it helps.
regards
-Dreamer
Not all of our dreams can be made to come true. But still we live with the hope to turn them into reality someday.