Search All of the Math Forum:

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

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

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Richard Tobin Posts: 1,420 Registered: 12/6/04
Re: No Putnam spoilers please
Posted: Dec 8, 2012 9:11 PM
 Plain Text 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

Date Subject Author
12/1/12 Dmitry Yu. Mitin
12/1/12 William Elliot
12/1/12 Bart Goddard
12/1/12 William Elliot
12/2/12 William Elliot
12/3/12 Bart Goddard
12/4/12 Dr J R Stockton
12/4/12 William Elliot
12/5/12 Butch Malahide
12/6/12 Dr J R Stockton
12/8/12 Dr J R Stockton
12/8/12 Richard Tobin
12/9/12 Wasell
12/13/12 Dr J R Stockton
12/14/12 Pubkeybreaker
12/5/12 Phil Carmody

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