Quantifying Favors

Alice and Bob are good friends. Bob caught a cold and called Alice for help. He wanted Alice to go to a pharmacy and bring him some cold medicine. Alice did that and I would like to assign a number to this act of giving. How can we quantify this favor?

First, we need to choose a scale. Usually favors cost us in time, money and emotions. Alice spent half an hour driving around, plus $5 on the medicine (we’ll skip the cost of gas for simplicity). It also cost her emotionally, especially because the traffic was really bad.

Measuring everything on three scales is complicated. I would like to convert everything to one scale, because in the future I intend to compare this act of giving to other favors Alice does. For example, Alice knows for sure that this favor for Bob was a less costly favor than her phone call yesterday to her ex-mother-in-law, even though the phone call took only five minutes and didn’t cost any money.

We probably can convert everything to dollars, but I am trying to resist this money-driven society that measures everything in dollars. So, I prefer to use points. Each dollar translates to one point, but time and emotion are more subjective.

Alice makes two calculations in her head: what she really spent and what she is owed.

Here’s what she spent: Alice counts 5 points for the medicine. She also views her time as money. She charges $100 an hour for consulting and values all her time at this rate. Hence, she adds 50 points for time spent. Traffic was bad, but not so bad. She thinks that her traffic stress cost her 15 points. Since she also had to cancel her date with her boyfriend, she estimates her annoyance with this at 100 points. On the other hand, she got this warm feeling from helping Bob and she was happy to see him. So she thinks that she got back 30 points. Adding all this up, we get a total of 140 points. This is how much Alice thinks she spent for this particular favor.

Does it mean that Alice thinks that Bob owes her 140 points? Usually not. The calculation of how much Alice thinks Bob actually owes her is completely different. She thinks that he owes her 5 points for the cost of medicine. Also, she knows that Bob earns much less than she does and values time differently, so she think that he owes her 30 points for her time. Since Bob is not responsible for traffic, she doesn’t add traffic points. Also, she never told Bob that she had to sacrifice her date for him, so she doesn’t think it’s fair to want Bob to be thankful for the sacrifice he doesn’t know about. At the same time she hopes that one day Bob will sacrifice something for her. She can’t ignore this sacrifice completely, so she adds 10 points for that. Altogether she thinks that Bob owes her 45 points.

Do you think Bob feels as if he owes Alice 45 points? Like Alice, he also has two numbers in his mind. One number is the amount of points he received as a result of this favor and the other number is how many points he officially owes Alice.

He actually was planning to ask his neighbor to buy the medicine, but for some reason he called Alice first and she offered help. Alice was delayed at her work and arrived at Bob’s place much later than he expected. She also brought the worst flavor of the syrup. Bob doesn’t value time as much as Alice, so he thinks that Alice spent 10 points driving and 5 points on the medicine. Bob felt ill throughout Alice’s visit and did not enjoy seeing her. Combining that with her late arrival with the wrong syrup, he thinks that he was annoyed for about 15 points. So he thinks that he got zero points from this transaction.

At the same time he wants to be fair. Bob knows that Alice did her best to help him; besides he never specified the flavor he likes. As a result, he doesn’t count his annoyance in how much he owes Alice. So he thinks that he owes Alice 15 points. What Bob really did to thank Alice, I will discuss in a later blog entry.

In conclusion, let me remind you of my system. I measure all favors in points. And for each favor I assign four numbers:

  • the giver’s official favor value (in our example 45 points)
  • the giver’s hidden favor value (in our example 140 points)
  • the receiver’s official favor value (in our example 15 points)
  • the receiver’s hidden favor value (in our example 0 points)
Share:Facebooktwitterredditpinterestlinkedinmail

MIT Mystery Hunt Functions

My favorite puzzle at 2008 MIT Mystery Hunt was the puzzle named Functions. Here is this puzzle:

 

36 -> 18      A,B
2 -> 1        A,C,G,H,K,L,O
512 -> 256    A,C,H
4 -> 2        A,G,H,Q
320 -> 160    A,R
411 -> 4      B,E,Q
13 -> 3       B,G,K
88 -> 11      C,D
45 -> 9       C,D,F,J,L
48 -> 6       C,G,M,P,Q
4 -> 1        C,K,L,N,O
36 -> 9       D,E,F
66 -> 8       D,E,G,I
10 -> 3       D,G,L
1 -> 3        D,L
150 -> 15     D,M
3 -> 2        E,H,J,K
25 -> 3       E,K,L,N,Q
9477 -> 14    E,M
129 -> 4      E,N,P
55 -> 10      F,J
411 -> 6      F,K,L,M,N
2002 -> 4     F,O,Q
79 -> 8       G,I,L,P
25 -> 20      H,M
176 -> 80     H,R
3665 -> 8     I,N,Q
7 -> 3        K,Q
11 -> 5       L,M
501 -> 2      L,O,P,Q
8190 -> 5     M,O
180 -> 3      O,P
50 -> 10      R

? -> (?)      F,R
(?) -> ?      J,L
(?) -> ?      A,F
(?) -> ?      N,O,Q
? -> (?)      A,D,J
(?) -> ?      D,H
(?) -> ?      G,K,Q
? -> (?)      B,D,M
(?) -> ?      E,H
? -> (?)      D,F,G,L
? -> (?)      C,G,P
Share:Facebooktwitterredditpinterestlinkedinmail

My Fantasy Future of 2+2: a Copyright Nightmare

I had a dream that sometime in the future I am babysitting my two-year old granddaughter-to-be Inna.

Me: Here is one apple; here is another apple. How many apples will you get when we put them together?
Inna: Two.
Me: So, 1+1 is… ?
Inna: Two.
Me: Good girl.
Inna: How much is 2+2?
Me: Shhh. We can’t talk about that.
Inna: Why? Will a big bad wolf come and eat us?
Me: Sort of. It is copyrighted and I do not have enough money for the private use license.
Inna: Did you spend all your money on a 1+1 license?
Me: No, honey. Google owns the rights and they released it for public use.
Inna: What about 3+3?
Me: We might be able to talk about it in a couple of years. The government is discussing the purchase of the rights, though it would be half of their annual education budget.
Inna: What about 4+4?
Me: 4+4 is approximately 8.
Inna: Don’t you know if it is 8? Do you think it could be 7?
Me: No, I know exactly how much it is. But the copyright has a loophole. You can’t say the exact sentence, but it doesn’t forbid variations. Have you heard that Stephen Colbert is being sued for saying how much 4+4 is on his show? Colbert argues that his grimace constitutes a complete reverse in meaning.
Inna: What about 5+5?
Me: Your father’s brother’s nephew’s cousin’s former roommate is a lawyer and he says that the 5+5 license doesn’t permit the answer to be in the same sentence as the statement. So, to be on the safe side, you should always go like this: “5+5 is a number. I like ice cream. My favorite flavor is chocolate. The number I’ve mentioned several sentences ago is 10.”
Inna: Can this lawyer find a loophole in the 2+2 license?
Me: The copyright agreement itself is copyrighted and too expensive for him.

Later my son, Alexey, comes to pick up his daughter. I continue the conversation with him.

Me: Your daughter is gifted in math. Is there any chance that her public school can teach her how to add 10+10?
Alexey: I know that our public school bought a limited license. They can discuss additions only in a designated room on Mondays from 11:00am to noon and only after 8th grade.
Me: Why the heck wait until 8th grade?
Alexey: They are required to study copyright laws first and pass the state exams.
Me: Have you considered private schools? Inna is so gifted — she might even get a scholarship.
Alexey: Our private school was able to copyright only three questions for their scholarship evaluations. And everyone knows that the answers are A, D and D.
Me: I have an idea. I am subscribed to Russian TV. They have a channel that broadcasts an educational math show in English.
Alexey: How could that be? The U.S. blocks all foreign non-copyrighted broadcasts in English.
Me: Their English is so bad, everyone thinks it is French.
Alexey: Ah, I was wondering where my boss’s son got his new horrifying accent.

At Inna’s next visit, Inna came up with some ideas.

Inna (in a low voice): I think I know how much 2+2 is.
Me: You can’t tell me that. But maybe you have a new favorite number. You can tell me your favorite number.
Inna: My favorite number is 4.
Me: Do you know how much 3+3 is?
Inna: I changed my mind. My new favorite number is 6 now.
Me: Good girl.
Inna: How come we are talking about addition and you never told me what the number after 10 is?
Me: Shhh. We can’t talk about that… —

Share:Facebooktwitterredditpinterestlinkedinmail

The “Why the Heck?” Diet

This is my first non-mathematical entry. But I invented this diet myself two days ago and I wanted to share it with you. It is a variation on my son Alexey’s “Am I hungry?” diet.

The only restriction for my diet is that you are not allowed to eat while your brain is busy with something else, like watching TV or playing sudoku.

If you are driving to your office while reading a newspaper and talking on the phone, you are allowed to have your morning donut, but only if you stop the car and put away your newspaper and phone. This diet is based on having an undistracted dialogue with your food.

Here how this diet works. Each time you open your mouth to take a bite, you should look at your food and ask yourself, “Why the heck do I need this bite?” This is it. Just look and ask. Nothing more.

It is better if you say it aloud. But if you are on a first date you are allowed to pronounce it in your head.

Here is what happened to my cake yesterday. On the first “Why the heck do I need this piece of cake?” I just ate one bite. On the second “Why the heck do I need this piece of cake?” my inner voice told me, “Shut up. I just want it.” On the third “Why the heck do I need this piece of cake?” my inner voice said: “Well, I am stressed out and I really crave some sugar. Besides, today is my last day at work, so I am allowed to celebrate.” On the fourth “Why the heck do I need this piece of cake?” I just put the piece of cake back in the fridge. I didn’t want it anymore. Altogether, I ate a third of my usual portion of cake. It works.

Try it. This diet is free. It is easy to remember. You do not need to change your lifestyle, go to the store to buy fresh vegetables or adopt new recipes. It might increase your morning commute time by one minute. But you can recover this minute by cutting down on exercise, since you won’t need it quite as much.

Share:Facebooktwitterredditpinterestlinkedinmail

Evaluating Exercise DVDs

There is a big difference between evaluating exercise DVDs and reviewing movies. You are supposed to use exercise DVDs many times. So the value of the DVD changes over time. An exercise DVD that is too difficult at the first try could become a lot of fun later. Alternatively, one that explains everything in detail can be great at the beginning, but it will become boring after several viewings.

Smart DVD producers probably know some common rules. The number of people who use a DVD for the first time is much bigger than the number of people who use it for the hundredth time. Users often post reviews and ratings of products they have bought. Therefore, the proportion of reviews by the first-time watchers is much higher than by the hundredth-time watchers. This means that to get better ratings the DVD producers should target the first-time watchers. Is this why we have so many boring exercise DVDs?

In my opinion, exercise DVDs should have two parts. One part explains everything by breaking the routine down into elements and the other part allows people who have learned the routine to do it without interruption.

Keep your eyes open for my upcoming web page with reviews of dance exercise DVDs that I own. These reviews will address both first-time users and every-day-for-a-year users.

Share:Facebooktwitterredditpinterestlinkedinmail

Teaching our Children to Lose the Lottery

Everyone knows that math education in public schools in this country is pathetic. If you looked at this problem from an economics point of view, the first question would be, “Qui prodest?.”

Who profits from bad math education? I know one place — the lottery. People who understand how the lottery works rarely buy tickets. They might buy an occasional ticket as entertainment, but never as an investment. No wonder they say that the lottery is a tax on people bad at math.

Huge money from lotteries goes to states and towns, and a big portion of that goes to education. That means towns, schools and math teachers have direct financial incentive not to provide good math education. This conflict of interest creates a situation in which, in the long run, it is profitable for schools to hire very poor math teachers or cut their math programs.

The situation is unethical. I think that lottery organizers should at least pretend that they are resolving this conflict and spend part of the lottery money to educate people not to play the lottery.

Share:Facebooktwitterredditpinterestlinkedinmail

Jumping Off the Cliff

I did it. I handed in my resignation letter to my boss. I’m resigning effective Jan 3, 2008. If you want to know why I’m waiting until next year, I can give you several reasons.

  • First, Christmas-time is usually the most enjoyable work time because no one is there. It is quiet.
  • Second, I’m superstitious: I believe the way I greet the New Year determines how the New Year is going to go, so I want to be employed at the strike of the midnight clock.
  • Last but not least, it appears that to get my company’s annual profit-sharing bonus, I have to be employed on December 31st.

I am happy and sad at the same time. In four and a half years I’ve made a lot of friends and accomplished a lot professionally. Now it is my time to move forward. Where is forward? It is in the direction of a cemetery, but I would rather be doing something more meaningful to me than battle management while I am slowly crawling there.

Share:Facebooktwitterredditpinterestlinkedinmail

Autobiographical Numbers

Do you know that 1210 is the smallest autobiographical number? You probably do not know what an autobiographical number is. You are right if you think that such a number should be a pompous self-centered number whose only purpose in life is to describe itself.

Here is the formal definition. An autobiographical number is a number N such that the first digit of N counts how many zeroes are in N, the second digit counts how many ones are in N and so on. In our example, 1210 has 1 zero, 2 ones, 1 two and 0 threes.

Let us find all autobiographical numbers using the “zoom-in” method.

  1. By definition, the autobiographies can’t have more than 10 digits. It is nice to know that these egotistical numbers can’t be too grand.
  2. The sum of the digits in an autobiography equals the number of the digits. Consequently, the sum of the digits will not be more than 10.
  3. The first digit is the number of zeroes. As you know, self-respecting integers do not start with a zero. Hence, the number of zeroes is not a zero.
  4. Subtracting statement “c” from statement “b” above, we get a resulting statement that the sum of all the digits, except for the first one, is equal to the number of non-zero digits plus 1.
  5. That means, other than the first digit, the set of all other non-zero digits consists of several ones and 1 two.
  6. Furthermore, the number of ones is either 0, 1 or 2.

Now we continue zooming in in three different directions depending on the number of ones. In this blog entry, I will consider only the case in which there are no ones; I leave the other two cases to the reader.

  • If the number of ones is zero, then the only non-zero non-first digit of such a number is 2.
  • This 2 should be included in the autobiography; since the third digit of the number is not zero, it must be 2.
  • The number has 2 twos.
  • It must be 2020.

Here is the full set of autobiographical numbers: 1210, 2020, 21200, 3211000, 42101000, 521001000, 6210001000.

This is the sequence A104786 in the Online Encyclopedia of Integer Sequences (OEIS), where I first encountered the autobiographical numbers.

Autobiographical numbers are very cute numbers. But there is a problem with their name. If there is a notion of an autobiography of a number, then it would be logical to expect that there is a notion of a biography of a number. What would be the logical candidate for a biography of a number? Let us say that given a number N, its biography is another number M such that the first digit of M is the number of zeroes in N, the second digit of M is the number of ones in N and so on.

Of course, for a number to have a biography, we need to assume that none of its digit is present more than nine times. Still there are several problems with the definition of a biography.

The first problem is that if N doesn’t have zeroes, its biography starts with a zero. As numbers don’t start with 0, that biography is not a number! Furthermore, if N starts with 0, it can have a biography but N is not a number. Luckily for this article, a digit string starting with zeroes can’t be an autobiographical string, because the number of zeroes is not a zero. It is a relief that those illegitimate strings that are trying to pretend to be numbers can’t actually be autobiographical.

The second problem with biographies is that a number can have many biographies. Indeed, if a number doesn’t have nines, you can remove or add zeroes at the end of a biography to get another biography of the same number. Since mathematicians like to define things uniquely, we might consider it a problem if a number has several biographies. In real life it is possible to have many biographies of a person. So the second problem is not a big problem. I will call the shortest possible biography of a number the curriculum vitae and the longest possible biography the complete life story.

The third problem is that numbers with the same digits in different permutations have the same biographies. So in a sense a biography follows the life not of a number, but rather the set of its digits.

Suppose for now we allow a biography to start with 0. Also, let us choose the curriculum vitae — the shortest biography in case there could be several. Let us build a sequence of CVs. As an example, we start with 0. Zero’s CV is 1, one’s CV is 01, continuing that we get the following sequence: 0, 1, 01, 11, 02, 101, 12, 011, 12, 011, 12, …. You can see that the CVs’ sequence fell into a cycle in this case. I tried sequences of CVs starting with many numbers. I found that they fall into two cycles. One cycle is described above and another one is: 22, 002, 201, 111, 03, 1001, 22. Can you find another cycle or, alternatively, can you prove that all the numbers that allow the sequence of CVs converge to only these two cycles?

Let us build the sequence of complete biographies, that is, life stories, starting with 0: 0, 1000000000, 9100000000, 8100000001, 7200000010, 7110000100, 6300000100, 7101001000, 6300000100, …. We see that this sequence falls into a cycle of length two. The members of this cycle are legitimate numbers. These numbers are too shy to advertise themselves. But Alice praises Bob, because Bob praises Alice. It’s a very advantageous flattery pattern! I will call such a pair a mutually-praising pair. We’ve already seen mutually-praising strings: 12 and 001. Two other examples of number pairs thriving on each others’ compliments are, first, 130 and 1101, and second, 2210 and 11200.

Share:Facebooktwitterredditpinterestlinkedinmail

My Paper Road to Academia

I would like to become a professor of mathematics. How can I get to academia? I was told that applicants are measured by the number of papers they write. They expect about 3 papers per year starting after the Ph.D. I got my Ph.D. 20 years ago. I published 6 papers after my Ph.D. papers. That means I urgently need to come up with 54 papers.

There are several problems with working in industry and trying to publish at the same time:

  • Some results derived at work you can’t publish because they are proprietary.
  • Some results derived at work are classified.
  • Journals want simulations; that means you may have to depend on colleagues.
  • If your project is closed before your group finishes your simulations, you have to put your paper on hold.
  • Also, if your paper is not directly a part of your project, you can’t use your official work time to write your paper.

Because of these obstacles, the papers I have started at my job are on hold. It’s unlikely that I’d be allowed to finish them during work hours.

So I started writing non-job-related papers on my weekends. I started doing this seriously a year ago. It goes very slowly and I hope to publish three papers soon, but my speed needs to be much higher than that to catch up with the 54 papers I didn’t have time to write while being a single mom and providing for my family.

So, I came up with this idea: to quit my job and write papers. I do not have enough money to support this idea for very long. Certainly, not enough time for 54 papers. We probably can survive on my savings for half a year. My goal is to write as many papers as I can in half a year and see what my real speed is. This way I can at least prove to myself that I am a mathematician for real.

The only problem is that my savings were meant for a down payment on my first house. I’ve been asking myself for awhile: What is more important− a dream job or a dream house? I just realized today that I will never be happy if I am not happy at my job and I am quite happy with the apartment I am renting now. I guess this is it − I just have to take the plunge.

Share:Facebooktwitterredditpinterestlinkedinmail

Fridays the 13th

Are you afraid of Friday the 13th? Here is my only Friday the 13th story.

It was Friday the 13th, and I was listening to the psychologist Joy Browne’s show. Joy asked her listeners to call in with stories of interesting things that happened to them on Friday the 13th. I wondered why I didn’t remember any stories about Friday the 13th.

At the end of her show, I went to pick up my mail, where I found a book kindly sent to me by Princeton University Press named Nonplussed!: Mathematical Proof of Implausible Ideas by Julian Havil. I opened this book to a random page, and it was Chapter 13. That was not such a big deal by itself, but in addition, Chapter 13 was titled “Friday the 13th”.

One of the things Julian Havil discussed in the chapter is how often the 13th of the month falls on different days of the week. You might remember from your elementary school education that the Gregorian calendar repeats an entire identical day-of-the-week cycle every 400 years. Hence, it is just a matter of calculation to check on which day of the week the 13th falls the most often.

Can you guess the answer? I am sure you can apply some meta-thinking and derive that there is one special day of the week on which the 13th most frequently falls. You might even guess by now that that day is Friday. Otherwise, why would I write this blog entry? Or what would Mr. Havil have to say in the whole chapter of the aforementioned book?

As we can see, this calculation increases the worry for people who suffer from paraskevidekatriaphobia — the fear of Friday the 13th. The 13th falls on Friday more often than on any other day.

Should we be worried?

Mathematically, the difference between the number of Fridays the 13th and, say, Thursdays the 13th is so small that it can only be observed when we look at the 400 year lifetime of the Gregorian calendar. Many countries have yet to experience the full cycle of the Gregorian calendar. For example, Russia adopted the calendar only in the 20th century. Is this why I am not so very afraid?

On second thought, for people of my generation, who are unlikely to live until the year 2100, the situation is slightly different. In the years between 1901 and 2099 our calendar has a days-of-the-week cycle of 28 years. You can calculate and check that in the period of 28 years, the 13th falls on any day of the week with the same probability. Hence, in events happening around my life time, there is not much to worry about, because Friday is no more special than any other day.

On third thought, a particular individual might see more Fridays on the 13th in his lifetime depending on the exact date of his birth. In my own life up to today, Monday is the most frequently occurring 13th. Maybe that’s why I do not like Mondays.

Share:Facebooktwitterredditpinterestlinkedinmail