r/ProgrammerHumor • • Oct 26 '26

Meme trustMeBro384Bit

Post image
2.4k Upvotes

18 comments sorted by

View all comments

89

u/LostKnight84 Oct 26 '26

It would be a nearly 100 digits ending in either a 1, 3, 5, 7.

27

u/Fragrant_Minimum1739 Oct 26 '26

It will end on 5 btw and have approx 116 digits not exact but should be close as i did calculation in my head

15

u/fghjconner Oct 26 '26

You're spot on:

39402006196394479212279040100143613805079739270465446667948293404245721771497210611414266254884915640806627990306815

6

u/AdBrave2400 Oct 26 '26

You nailed it

3

u/LostKnight84 Oct 26 '26

Thanks I was estimating an additional digit for every 3-4 powers of 2. I guess I should have went with 2-3.

2

u/48panda Oct 26 '26

3 every 10 is probably the best small approximation

2

u/syedwafihasan Oct 27 '26

What's your thought process for calculating this?

4

u/Fragrant_Minimum1739 Oct 27 '26

For ending it is cyclicity

24n+1 ends with 2

24n+2 ends with 4

24n+3 ends with 8

24n ends with 6

And then it repeats

As 384%4 = 0 so it ends with 6

Subtract 1 from it now it has 5 as ending digit 

Now what about no. Of digits

Just use int log(n) +1 formula

So 384log(2) +1

384 * 0.3 +1

115+1

116