made it generic with macros.
This commit is contained in:
parent
19d2a52d29
commit
567611d2dc
@ -1,5 +1,12 @@
|
|||||||
\documentclass[a4paper,10pt]{article}
|
\documentclass[a4paper,10pt]{article}
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
|
\newcommand{\theme}{Macdondalds}
|
||||||
|
\newcommand{\ttt}{D}
|
||||||
|
\newcommand{\topname}{Drink}
|
||||||
|
\newcommand{\mmm}{M}
|
||||||
|
\newcommand{\midname}{Burger}
|
||||||
|
\newcommand{\bbb}{F}
|
||||||
|
\newcommand{\botname}{fries}
|
||||||
|
|
||||||
%opening
|
%opening
|
||||||
\title{}
|
\title{}
|
||||||
@ -10,31 +17,29 @@
|
|||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
\begin{abstract}
|
\begin{abstract}
|
||||||
|
This small document un~picks the common
|
||||||
|
facebook maths picture puzzle. % solution
|
||||||
\end{abstract}
|
\end{abstract}
|
||||||
|
|
||||||
\section{Various themes but always the same hidden multiply: McDonalds maths puzzle etc.}
|
\section{Various themes but always the same hidden multiply: this one is the {\theme} maths puzzle etc.}
|
||||||
|
|
||||||
Where $D$ is a drink, $B$ is a burger and $F$ is fries:
|
Where $\ttt$ is a {\topname}, $\mmm$ is a {\midname} and $\bbb$ is {\botname}:
|
||||||
|
|
||||||
$$ D + D + D = 30 $$
|
$$ \ttt + \ttt + \ttt = 30 $$
|
||||||
so $D$ == 10
|
so $\ttt$ == 10
|
||||||
$$ D + B + B = 20 $$
|
$$ \ttt + \mmm + \mmm = 20 $$
|
||||||
so $B$ == 5
|
so $\mmm$ == 5
|
||||||
$$ B + FF + FF = 9 $$
|
$$ \mmm + \bbb \bbb + \bbb \bbb = 9 $$
|
||||||
so $FF + FF = 4$ therefore $FF=2$ so $F=\pm \sqrt{2}$
|
so $\bbb \bbb + \bbb \bbb = 4$ therefore $\bbb \bbb=2$ so $\bbb=\pm \sqrt{2}$
|
||||||
|
|
||||||
Onto the final equation
|
Onto the final equation
|
||||||
$$B + F \times D = \; ? $$
|
$$\mmm + \bbb \times \ttt = \; ? $$
|
||||||
|
|
||||||
As $F$ is $\pm \sqrt{2}$
|
|
||||||
|
|
||||||
there are two valid answers
|
|
||||||
|
|
||||||
|
As $\bbb$ is $\pm \sqrt{2}$ there are actually two valid answers:
|
||||||
$ 5 + \sqrt{2} \times 10 $ and $ 5 - \sqrt{2} \times 10 $
|
$ 5 + \sqrt{2} \times 10 $ and $ 5 - \sqrt{2} \times 10 $
|
||||||
|
|
||||||
So the answer is either 19.142 or -9.142.
|
So the answer is either 19.142 or -9.142.
|
||||||
|
|
||||||
|
\vspace{0.5cm}
|
||||||
|
typeset in {\LaTeX} on {\today}.
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user