Tricky homework problem for an eight year old
- From: Jamie Collins <jamieuka@xxxxxxxxxxxxxx>
- Date: Wed, 11 Feb 2009 03:00:36 -0800 (PST)
Please help me help my eight year old with her homework:
Can you find three different odd numbers [positive integers implied]
that add up to 25?
Can you find all possible answers?
How do you know you have found them all?
The best I could do was to find use SQL and the standard trick of a
'Sequence' table of integers and 'Cartesian Product' (CROSS JOIN):
SELECT S1.seq, S2.seq, S3.seq
FROM Sequence AS S1, Sequence AS S2, Sequence AS S3
WHERE S1.seq BETWEEN 1 AND 25
AND S1.seq % 2 = 1
AND S2.seq BETWEEN 1 AND 25
AND S2.seq % 2 = 1
AND S3.seq BETWEEN 1 AND 25
AND S3.seq % 2 = 1
AND S1.seq < S2.seq
AND S2.seq < S3.seq
AND S1.seq + S2.seq + S3.seq = 25;
I started off with no predicates (no WHERE clause), added them one by
one and she could follow OK. But I still can't answer how I know these
are all the possible 'answers'.
.
- Follow-Ups:
- Re: Tricky homework problem for an eight year old
- From: Tim Smith
- Re: Tricky homework problem for an eight year old
- From: Mensanator
- Re: Tricky homework problem for an eight year old
- From: LudovicoVan
- Re: Tricky homework problem for an eight year old
- From: rossum
- Re: Tricky homework problem for an eight year old
- From: William Elliot
- Re: Tricky homework problem for an eight year old
- From: victor_meldrew_666@xxxxxxxxxxx
- Re: Tricky homework problem for an eight year old
- From: alainverghote@xxxxxxxxx
- Re: Tricky homework problem for an eight year old
- Prev by Date: Fuckenheim's latest fuck-up
- Next by Date: Inn(S_n) ever a proper subgroup of Aut(S_n) for some n?
- Previous by thread: Fuckenheim's latest fuck-up
- Next by thread: Re: Tricky homework problem for an eight year old
- Index(es):