a huge integer power 3 power n

Torbjörn Granlund tg at gmplib.org
Thu Aug 25 12:30:07 UTC 2016

Thomas Lover <mailbidonjustice at gmail.com> writes:

  I want to make this operation below with GMP ! And I have been trying
  for 10 days now without any success. So, I need help!
  The user enters an integer called “n”. Then I need to have a number
  which is 3 power n.
Thus far, things seem clear.

  Then I have to power a huge integer that has 1000 digits with 3^n.
I cannot make sense of this, unfortunately.

Perhaps you can express your intensions with plain maths?

Please encrypt, key id 0xC8601622

More information about the gmp-discuss mailing list