Hexadecimal and factorial problem

Click For Summary
The discussion focuses on finding the last hexadecimal digit of the sum of large factorials, specifically from 990! to 1000!. Participants clarify that to determine the last hex digit, one must consider the number of trailing zeros in the factorials, which is influenced by factors of 16. It is noted that large factorials accumulate zeros rapidly, and thus only the last four digits of the sum need to be calculated. The final four digits of the sum from 1! to 20! are found to be 60,313, which converts to EB99 in hexadecimal. This approach simplifies the problem by reducing the range of factorials needed for the calculation.
SYoungblood
Messages
64
Reaction score
1

Homework Statement



Hello all,

I am trying to determine the last hexadecimal digit of a sum of rather large factorials. To start, I have the sum 990! + 991! +...+1000!. I am trying to find the last hex digit of a larger sum than this, but I think all I need is a push in the right direction, because right now I am lost.

Homework Equations


To start, I have the sum 990! + 991! +...+1000!. I am trying to find the last hex digit of a larger sum than this, but I think all I need is a push in the right direction, because right now I am lost. Any info on how to determine the last hex digit of a large factorial, even just 1000!, is greatly appreciated.

The Attempt at a Solution



Where would I even begin? I tried to convert 1000 to hexadecimal form -- 3E8 -- but that didn't seem to help me at all, or at least not as much as I thought it would.

Any and all help is greatly appreciated.

SY
 
Physics news on Phys.org
What do you mean by "a larger sum than this" ?
 
Suppose the problem were in decimal rather than hexadecimal? What are the last digits of a large factorial number in decimal notation? Why? What about in hexadecimal?
 
  • Like
Likes SYoungblood
GAAH.

I see what you got -- we will have a large number of zeroes (I'm too lazy to figure out how many) -- certainly more than four, which establishes divisibility by 16, and then we convert to hex.

Thank you,

SY
 
I'd state it differently. In decimal, every time we accumulate another factor of 10, we add another zero to the end. So when we multiply by 10, 20, 30, ... each one adds a zero. Also each combination of 2 and 5 adds another zero. In hex, every time we multiply by a multiple of 16 (16, 32, 48, ...), we add a zero to the end. Also accumulating 4 powers of 2 adds another zero on the end. So 1000! will have over 200 zeros on the end, either in decimal or in hex.
 
  • Like
Likes SYoungblood
I was able to figure it out.

Th actual question is to find the final hex digit of 1! + 2! + 3! + ... + 1000! Since, as you said, we accumulate zeroes in summing factorials at every fifth element (4!=24; 5!=120, 9!=362,880 10!=3,628,800...) we only need to find the values up to 20! (For the larger values, I cheated and used Wolfram.) We only need the sum of the last four digits, because to test divisibility by 16, we only need to check the last four digits, then like the zeroes, the changing place values shift further to the left. The final four (well, 5) digits of the sum from 1! through 20! is 60,313, and that is EB99 in hex notation.

Thanks much,

SY
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 3 ·
Replies
3
Views
782
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
11K
Replies
1
Views
4K
Replies
32
Views
3K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
13K