The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: No Putnam spoilers please
Replies: 15   Last Post: Dec 14, 2012 6:05 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Richard Tobin

Posts: 1,436
Registered: 12/6/04
Re: No Putnam spoilers please
Posted: Dec 8, 2012 9:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In article <>,
Dr J R Stockton <> wrote:

>Can anyone (or more) please provide here the last ten decimal digits (in
>order) of ((3^349)-1)/2, freshly and independently calculated and not
>copied from any other medium, and not using my LongCalc or VastCalc?

#include <stdio.h>

int main(void)
long t = 1;
int i;

for(i=0; i<349; i++)
t *= 3;
t = t % 1000000000000000;

printf("%ld\n", (t-1)/2);

return 0;

gives 128887379284041

-- Richard

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.