Solve Linear Congruence: Olivia & John's Train Tickets

  • Thread starter Norway
  • Start date
  • Tags
    Linear
And so, to summarize: Olivia and John both take the train home on weekends, with Olivia paying 234 kr for a round trip ticket and John paying 264 kr for the same kind of ticket. After half a year, Olivia has paid 54 kr more than John. The equation 234x = 264y + 54 is used to find the possible values for x and y. The greatest common divisor of 234 and 264 is 6, and using the equation ax is congruent with b (mod n), it is determined that n=6 is the only possible solution for x = 7 + 44n. This means that x is between 0 and 26, and since there are only 26 weekends
  • #1
Norway
50
3

Homework Statement


Basically:
Olivia pays 234 kr for a train ticket, and John pays 264 kr for the same kind of ticket. After half a year, Olivia has paid 54 kr more than John. How many tickets did they buy each?

By the way, kr is the currency in Norway.

Homework Equations


Uhm, I guess:
ax + ny = b <=> ax is congruent with b (mod n)
and all the usual equations for congruences.


The Attempt at a Solution


This is what I've done (I agree with the solution [which I have] quite far, but there's one bit I don't understand):
234x = 264y + 54
234x is congruent with 54 (mod 264) => gcd(234, 264) = 6 => 6|54

39x is congruent with 9 (mod 44)

(9 + 44n)/39 has to be a natural number. n = 6

39x is congruent with 9 + 44 * 6 (mod 44)
39x is congruent with 273 (mod 44)
x is congruent with 7 (mod 44)

x = 7 + 44n

Okay, the solution agrees with me this far. Then I got blank, as this is supposed to have 6 incongruences modulo 264, so I checked it up in the solution. It says: "If Olivia takes the train every weekend, x_(max) = 24 => x = 7 + 44 * 0 = 7" and then finds y = 6.

But I didn't understand that about xmax being 24, and why it apparently doesn't matter at all that it's 24. Why does it tell me to continue like that? I understand everything that's done, except from that tiny part about deciding that n=0 is the only possible solution for x = 7 + 44n.

Thanks :)
 
Physics news on Phys.org
  • #2
Where did the information "Olivia takes the train every weekend" come from? Was that stated in the problem? Is it impossible that Olivia could take the train everyday? It looks to me like they are saying that if Olivia took took the train NO MORE than every weekend, she could not have taken more than 52/2= 26 (but that's not 24!) train trips in half a year. Since with n positive x= 7+ 44nz> 50 which is larger than 24 (or 26). Is it impossible that Olivia took the train 51 times? Is there no other information?
 
Last edited by a moderator:
  • #3
I think I got it now anyways, but you're right. This is the task as it's written (although bad grammar, prehaps, because of my not-so-good translation):
Olivia and John lives in a bedsit (according to a dictionary, although I've never heard of it before), and sometimes take the train home during weekends. Olivia pays 234 for a round trip ticket, and John pays 264 kr for the same kind of ticket. In the course of half a year, Olivia paid 54 kr more than John for the travels by train. How many times did each of them travel home by train this half year?

As I said, the key answers agreed with me all the way to x = 7 + 44n, and then it said:
"If Olivia travels home every weekend, then x_(max) = 24"
They probably thought 4 weeks * 6 months = 24 weeks.
But then it's just a right arrow towards the next equation: x = 7 + 44*0 = 7. Which is the correct answer, but what was the deal of mentioning 24 or x_max at all? I can't see where it has been useful.

Although, my guess is that it tells us that x must be between 0 and 26, which leaves us with x = 7 as the only possible solution (because we had 6 originally, right? seeing as 6 was the greatest common divisor of 234 and 264?) which again leaves us with y = 6

x = 7, y = 6

Kinda talking to myself here, but I'm trying to convince myself that I might have had full control of this one.
 
  • #4
Ah, it is that "sometimes take the train home during weekends." that puts the limit on how many times they may use the train. There are no more than 26 weekends in half a year. A "bedsit", I believe, is British for a "bed-sitting room": a small apartment consisting of a single bedroom, "sitting room" (living room), and, of course, bathroom and kitchen.
 
  • #5
Yes, "bedsit" was a translation of the Norwegian word "hybel", which is a small apartment you live in when you study in other cities, for example. Well, thanks :)
 

1. How do you solve a linear congruence?

To solve a linear congruence, you need to find the value of the unknown variable by using the properties of congruence. This involves finding the inverse of the coefficient of the unknown variable and multiplying it by the constant term on both sides of the congruence equation.

2. What are the properties of congruence used in solving a linear congruence?

The properties of congruence used in solving a linear congruence are the reflexive, symmetric, and transitive properties. These properties state that if two numbers are congruent, their multiples and sums will also be congruent.

3. How do you know if a linear congruence has a solution?

A linear congruence has a solution if the greatest common divisor (GCD) of the coefficient of the unknown variable and the modulus (the number that the variable is congruent to) is a factor of the constant term. If the GCD is not a factor, then the congruence has no solution.

4. Can a linear congruence have more than one solution?

Yes, a linear congruence can have multiple solutions. This is because there can be multiple values that satisfy the congruence equation. However, a linear congruence can also have no solution if the GCD of the coefficient and modulus does not evenly divide the constant term.

5. How can linear congruences be applied in real-life situations?

Linear congruences can be applied in many real-life situations, such as in cryptography, computer science, and engineering. For example, in the case of Olivia and John's train tickets, the linear congruence equation can be used to determine the number of tickets sold based on the total amount of money earned.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
4
Views
924
  • Precalculus Mathematics Homework Help
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
9
Views
2K
  • Precalculus Mathematics Homework Help
Replies
22
Views
3K
  • Precalculus Mathematics Homework Help
Replies
27
Views
4K
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
8
Views
5K
  • Programming and Computer Science
Replies
19
Views
961
  • Calculus and Beyond Homework Help
Replies
3
Views
985
  • Precalculus Mathematics Homework Help
Replies
2
Views
2K
Back
Top