cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Congruences, Divisibility Test

klian
1-Newbie

Congruences, Divisibility Test

Use an appropriate function using Mathcad to find the remainder when

12345678981129 is divided by 5518.

Can anybody help in this?

Beginner in Mathcad...

1 ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald II
(To:klian)

Kok Kiang Lian wrote:

Use an appropriate function using Mathcad to find the remainder when

12345678981129 is divided by 5518.

Can anybody help in this?

Beginner in Mathcad...

View solution in original post

7 REPLIES 7
RichardJ
19-Tanzanite
(To:klian)

Look up the "floor" function.

Or the "mod" function.

Alan

StuartBruff
23-Emerald II
(To:klian)

Kok Kiang Lian wrote:

Use an appropriate function using Mathcad to find the remainder when

12345678981129 is divided by 5518.

Can anybody help in this?

Beginner in Mathcad...

RichardJ
19-Tanzanite
(To:StuartBruff)

And here endeth the beginners lesson in Mathcad

Interesting observation about the built-in mod function though

Thxs, Sir...

As for trunc and floor, I don't really understand. It don't seems to give the right answer to the question by using trunc and floor.

I will practice on it and figure it out...

Regards

Sir,

It seems like = sign is not showing the right answer for some other questions.... Symbolic processing is more appropriate.

Thxs again.

Regards

StuartBruff
23-Emerald II
(To:klian)

Kok Kiang Lian wrote:

Sir,

It seems like = sign is not showing the right answer for some other questions.... Symbolic processing is more appropriate.

Yes.  For large integers (more 15 digits), the numeric processor will have limitations on how many digits it can store and, consequently, on how accurate the divisions will be, even with smaller integers as the divisions may not have sufficient (binary) digits to be exact.  The symbolic processor should be able to handle reasonably large numbers ...

Stuart

Top Tags