Results 1 to 3 of 3

Math Help - Algorithm to compute the k first and last digits of n^n

  1. #1
    Newbie
    Joined
    May 2013
    From
    Casablanca
    Posts
    3

    Algorithm to compute the k first and last digits of n^n

    Hello !

    I'm having trouble with this :

    I want to write an algorithm that computes the K first and K last digits of n^n.

    I know I should use some sort of combination between (a+b)^n and log(n) but I'm really striking out !

    Thank you in advance for your help!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    4,186
    Thanks
    772

    Re: Algorithm to compute the k first and last digits of n^n

    Hey SummerTime.

    Have you got access to a basic number theory book?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    May 2013
    From
    Casablanca
    Posts
    3

    Re: Algorithm to compute the k first and last digits of n^n

    Hi chiro,
    No I don't actually study mathematics so I don't have access. But if you could just point me in the right direction? I will try to learn from around the web.
    Thank you
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Division Algorithm or Euclidean Algorithm
    Posted in the Discrete Math Forum
    Replies: 6
    Last Post: April 10th 2013, 02:10 PM
  2. Replies: 7
    Last Post: November 28th 2010, 10:22 PM
  3. Replies: 1
    Last Post: March 17th 2010, 03:41 AM
  4. Replies: 2
    Last Post: April 6th 2009, 04:51 AM
  5. Replies: 2
    Last Post: April 3rd 2007, 01:31 PM

Search Tags


/mathhelpforum @mathhelpforum