Date: Dec 8, 2012 9:11 PM
Author: Richard Tobin
Subject: Re: No Putnam spoilers please

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