Problem 036
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
In particular don't post any code fragments or results.
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
-
tOmcOlins
- Posts: 7
- Joined: Sun Apr 27, 2008 11:25 pm
-
fbarton
- Posts: 2
- Joined: Fri May 01, 2009 2:49 pm
Re: Problem 036
I also suggest re-wording the problem from
toFind the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
Just for clarification's sakeFind the sum of all natural numbers, less than one million, which are palindromic in base 10 and base 2.
- Assato
- Posts: 13
- Joined: Sun Apr 19, 2009 4:21 pm
Re: Problem 036
Well, a palindromic number can't be negative, so in the end that wouldn't make much of a difference... unless you are trying to exclude FRACTIONAL palindromic numbers?
Anyway, the formal definition of Palindromic number from wikipedia (http://en.wikipedia.org/wiki/Palindromic_number) defines this concept only for natural numbers...
Anyway, the formal definition of Palindromic number from wikipedia (http://en.wikipedia.org/wiki/Palindromic_number) defines this concept only for natural numbers...
-
kvanvel
- Posts: 1
- Joined: Mon Mar 08, 2010 1:06 am
PROBLEM 36
I am reasonably sure that there is an error in the solution to problem 36 http://projecteuler.net/index.php?secti ... lems&id=36.
Please note that according to the note about appending leading zeros,
811800 and 656000 are both palindromes. We can think of them as
00811800 and 000656000, respectively. Also the base 2 representations of these numbers are as follows;
110001100011000110002 for 811800 which we can pad with zeros to make 000110001100011000110002 which is a palindrome.
10100000001010000002 for 656000 which we can pad with zeros to make 00000010100000001010000002 which is also a palindrome.
These numbers, among others, are not listed in anyone's list of both base 10 and base 2 palindromes.
This is my first post, so I apologize if this should go someplace else. I tried not to disclose any hints on the "correct" answer. Thanks.
Please note that according to the note about appending leading zeros,
811800 and 656000 are both palindromes. We can think of them as
00811800 and 000656000, respectively. Also the base 2 representations of these numbers are as follows;
110001100011000110002 for 811800 which we can pad with zeros to make 000110001100011000110002 which is a palindrome.
10100000001010000002 for 656000 which we can pad with zeros to make 00000010100000001010000002 which is also a palindrome.
These numbers, among others, are not listed in anyone's list of both base 10 and base 2 palindromes.
This is my first post, so I apologize if this should go someplace else. I tried not to disclose any hints on the "correct" answer. Thanks.
-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
Re: PROBLEM 36
The note about leading zeroes says they are not allowed. You seem to have misread that and thought leading zeroes are allowed.
-
JeffsRealm
- Posts: 2
- Joined: Tue Mar 15, 2011 5:25 pm
Re: Problem 036
Question about this problem,
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
I realize the example is 585 = 1001001001
So does this mean
Find the sum of all numbers, less than one million, which are palindromic in BOTH base 10 and base 2.
or
Find the sum of all numbers, less than one million, which are palindromic in base 10 then sum with the ones which are palindromic in base 2 as well.
I am guessing I will answer it myself soon enough but the wording was just odd if the number needs to be palindromic in both base 10 and base 2 to count. I am assuming this is the case and so will try it this way first.
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
I realize the example is 585 = 1001001001
So does this mean
Find the sum of all numbers, less than one million, which are palindromic in BOTH base 10 and base 2.
or
Find the sum of all numbers, less than one million, which are palindromic in base 10 then sum with the ones which are palindromic in base 2 as well.
I am guessing I will answer it myself soon enough but the wording was just odd if the number needs to be palindromic in both base 10 and base 2 to count. I am assuming this is the case and so will try it this way first.
-
JeffsRealm
- Posts: 2
- Joined: Tue Mar 15, 2011 5:25 pm
Re: Problem 036
I guess I will answer my own question if someone comes looking
Yes the answer is
Find the sum of all numbers, less than one million, which are palindromic in BOTH base 10 and base 2.
So just like the 585 example is palindromic in both.
Yes the answer is
Find the sum of all numbers, less than one million, which are palindromic in BOTH base 10 and base 2.
So just like the 585 example is palindromic in both.
-
hooiberg
- Posts: 3
- Joined: Fri Jul 08, 2011 9:08 am
Re: Problem 036
in most problems 'less than one million' is very clear. It is a bit ambiguous in this problem though, because 1000000 is a number both in base 10 and in base 2, however their numerical values are different.
Is it correct to assume that 'less than one million' refers to base 10?
Is it correct to assume that 'less than one million' refers to base 10?
- jaap
- Posts: 588
- Joined: Tue Mar 25, 2008 3:57 pm
- Contact:
Re: Problem 036
That is why it says "one million" and not "1000000".hooiberg wrote:in most problems 'less than one million' is very clear. It is a bit ambiguous in this problem though, because 1000000 is a number both in base 10 and in base 2, however their numerical values are different.
Is it correct to assume that 'less than one million' refers to base 10?
-
hooiberg
- Posts: 3
- Joined: Fri Jul 08, 2011 9:08 am
-
Sintex
- Posts: 3
- Joined: Mon Dec 20, 2010 3:35 pm
Re: Problem 036
Could i ask i cant seem to find an issue with my code however Euler is saying its wrong,
Dose anyone know how many palindromic numbers in both bases there are under 1M.
Thanks
Dose anyone know how many palindromic numbers in both bases there are under 1M.
Thanks

- rayfil
- Administrator
- Posts: 1412
- Joined: Sun Mar 26, 2006 5:30 am
- Location: Quebec, Canada
- Contact:
Re: Problem 036
At the last count, 26639 persons have submitted the correct answer and must therefore know how many palindromic numbers in both bases there are under 1M. It's just a matter of counting them when adding them up.Dose anyone know how many palindromic numbers in both bases there are under 1M.
Send me a PM with your count and I will answer you if it is correct or not.
When you assume something, you risk being wrong half the time.
-
bratbartka
- Posts: 2
- Joined: Tue Nov 01, 2011 1:51 pm
Re: Problem 036
I wrote some algorithm which should works.. but it doesn't
I started from 11 till 999999
I suppose that from 1 to 10 there are 5 BOTH palindromic
1 - 1, 3 - 11, 5 -101, 7 -111, 9 - 1001
am I correct ?
I just wonder if there is some mistake in the start assumption or I should rather pay attention on algorithm ?
help, help, help
I started from 11 till 999999
I suppose that from 1 to 10 there are 5 BOTH palindromic
1 - 1, 3 - 11, 5 -101, 7 -111, 9 - 1001
am I correct ?
I just wonder if there is some mistake in the start assumption or I should rather pay attention on algorithm ?
help, help, help
-
bratbartka
- Posts: 2
- Joined: Tue Nov 01, 2011 1:51 pm
Re: Problem 036
OK
I war right
In my case I was counting these numbers instead of add them.
E.G.
below 11 there is 5 palindromic BOTH base
bu the sum is 1 + 3 + 5 + 7 + 9 = 25
and 25 should be the answer, not 5
I war right
In my case I was counting these numbers instead of add them.
E.G.
below 11 there is 5 palindromic BOTH base
bu the sum is 1 + 3 + 5 + 7 + 9 = 25
and 25 should be the answer, not 5
-
springyboard
- Posts: 2
- Joined: Mon Jan 30, 2023 5:27 pm
Re: Problem 036
I joined the forum to post the exact same question but managed to find this topic in the search.
Perhaps we could discuss a better wording for the problem to clarify this.
Perhaps we could discuss a better wording for the problem to clarify this.
- bruce_love
- Administrator
- Posts: 3540
- Joined: Sat Sep 24, 2011 11:59 am
