Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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,232
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 <1tj7wWW+E5wQFwvR@invalid.uk.co.demon.merlyn.invalid>,
Dr J R Stockton <reply1249@merlyn.demon.co.uk.invalid> 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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.