Ярослав Рахматуллин
Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Newest
 Student
Impact
~156 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Oct
15
comment How can this algorithm be expressed in mathematical terms?
Simple and clever. I tried to get the same result, but forgot to exclude the odd multiples of 11. You gave me both a "confirmation" and a suggestion for improvement! I could not have hoped for a better answer. Thanks a million!
Oct
15
comment How can this algorithm be expressed in mathematical terms?
The problem is actually to find out how many elements there are, and not to enumerate all the elements.
Oct
15
comment How can this algorithm be expressed in mathematical terms?
@David Wallace The part I'm struggling with, is if I give an answer like that, then I have simply restated the problem in mathematical terms. Giving anything else as an answer, i.e. the whole set or parts of it, seems like an idiotic thing to do because there are 319 elements in it. So I'm thinking I have to explain what algorithm (function) I used to get the set and the formal definition of the set, like you wrote.