Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.5K Views
|
6 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Function to view N-th digit of large number?

Posted 6 years ago

Hello, I would like to view numbers in the string on wanted position, eg. pi, e, 9^(9^9),...

I would like to see the digit on position 177486336 of the number 9^(9^9). I read a lot on internet but I thing I missed something.

Thank you for recommendation.

POSTED BY: SERGEJ KAREL
6 Replies
Posted 3 years ago

There is no need to compute all the digits to determine the last one. Observe the pattern

Table[9^i, {i, 1, 10, 2}]
(* {9, 729, 59049, 4782969, 387420489} *)

Table[9^i, {i, 2, 10, 2}]
(* {81, 6561, 531441, 43046721, 3486784401} *)

Odd powers end in 9, even powers end in 1. Since 9^9 is odd, the last digit of 9^(9^9) must be 9.

Verify by computing the number

9^(9^9) // IntegerDigits // Last
(* 9 *)
POSTED BY: Rohit Namjoshi
POSTED BY: Claudio Chaib
POSTED BY: Claudio Chaib
Posted 3 years ago

Hello. I need to find the last digit of number 9^9^9, i tried

IntegerLength[9^(9^9)]

a i get a number of digits, but i cannot use

ResourceFunction["NthDigit"][9^(9^9),369693100]

or

ResourceFunction["NthDigit"][9^(9^9),{369693100}]

It didn“t work. Please help me, how can i do it?

POSTED BY: Jana Skoupa
Posted 6 years ago

Thank you.

POSTED BY: SERGEJ KAREL
Posted 6 years ago
POSTED BY: SERGEJ KAREL
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard