42
votes

The Duck Giveaway 2016, Seasonal Edition

Friends, the contest is over! The winning number was 50, picked by CarLaTeX. Thanks everybody for joining the contest!

'ello, ladies and gentlemen, boys and girls, ducks and mallards, children of all ages! It is time for organizing another amazing community lottery, our beloved duck giveaway 2016, seasonal edition! The previous giveaway was a huge success, so let us try that again! Quack!

The prize

The prize will be a lovely duck! Not a real one, I am afraid (note to self: organize another lottery with real ducks in the future), it will be a hand puppet duck:

Quack!

Lovely, isn't it?

Again, why a duck? Why not a lion?

As I mentioned in the thread linked here, I always like to provide examples with ducks when I write answers. To my surprise, the theme got a very positive feedback from the community and it spread to everybody. Of course, a lion would be better, but hey, it's free! And it's a duck! :)

Why a hand puppet?

This will be our third lottery offering a duck puppet and I still have absolutely no idea. But since I got this duck again, I thought it would be a good idea to start a contest! :)

Rules

Rules from last lottery still apply:

  • To win the duck you must guess a number in the range 1-200. The first person who guesses the right number gets the duck.

  • Contestants may submit 2 valid guesses. UPDATE: Let us spice things up! you can now select a third entry! :)

  • Please post your guess as an answer to this meta question, not as a comment.

  • Contestants must have been a member of TeX.sx before 1 November, 2016.

Two additional mentions:

  • If two or more people choose the same number, only the oldest entry will be considered. The other guesses will be automatically disqualified.

  • If you win the contest, I will need your real name and address for shipping and customs purposes (you can contact me through email, so only I will have privileged access). If you seek anonymity, we advise you to not enter this contest.

Please don't forget to edit the punch card with your numbers.


The lottery

As seen in the last lottery, I'll use the following code to pick the winner (special thanks to the awesome LaTeX Project for LaTeX3):

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{expl3}
\usepackage{xparse}

\usepackage{pgf}
\pgfmathsetseed{\number\pdfrandomseed}

\ExplSyntaxOn

\prop_new:N \g_duck_contest_prop
\int_new:N \g_duck_contest_upper_limit_int
\bool_new:N \l_duck_contest_winner_bool
\bool_set_false:N \l_duck_contest_winner_bool
\tl_new:N \l_duck_contest_winner_tl
\int_new:N \l_duck_contest_winning_number_int

\NewDocumentCommand { \person } { m m }
{
    \clist_map_inline:nn { #1 }
    {
        \prop_if_in:NnTF \g_duck_contest_prop { ##1 }
        {
            Hey! ~ #2 ~ wants ~ to ~ be ~ naughty! ~
            The ~ number ~ ##1 ~ was ~ already ~ chosen! \par
        }
        {
            \prop_gput:Nnn \g_duck_contest_prop { ##1 } { #2 }
            \int_gset:Nn \g_duck_contest_upper_limit_int
            {
                \int_max:nn { \g_duck_contest_upper_limit_int } { ##1 }
            }
        }
    }
}

\NewDocumentCommand{ \winner } { }
{
    \bool_do_until:Nn \l_duck_contest_winner_bool
    {
        \pgfmathrandom{1, \g_duck_contest_upper_limit_int}
        \prop_get:NoN \g_duck_contest_prop { \pgfmathresult } \l_duck_contest_winner_tl
        \quark_if_no_value:NF \l_duck_contest_winner_tl
        {
            \bool_set_true:N \l_duck_contest_winner_bool
        }
    }
    \int_set_eq:NN \l_duck_contest_winning_number_int \pgfmathresult
    \l_duck_contest_winner_tl
}

\cs_generate_variant:Nn \prop_get:NnN { No }

\NewDocumentCommand{ \winningnumber } { }
{
    \int_to_arabic:n \l_duck_contest_winning_number_int
}

\ExplSyntaxOff

\begin{document}

% add yourself here
% ==============================
% For example, in the following line
% I picked 1 and 27, but I'm not
% participating in the contest :)
% \person{1,27}{Paulo Cereda}
% ==============================

% the announcement
The winner is \winner, with \winningnumber! Congratulations!

\end{document}

I will run this code with all the contestants, post a video of it and announce the winner. The "accepted answer" in this thread will reflect the winning number.

The date

Hopefully, I will get the code running on December 30, 2016 (Friday), and announce the winner. There will be enough time for guessing the numbers!

Good luck! And by the way, welcome to TeX.sx, the friendliest and most awesome community in the whole StackExchange network! They give us hats, right? We give ducks! Quack! :)


---------------------------------------------------------------------------------
|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|
---------------------------------------------------------------------------------
|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|037|038|●●●|●●●|
---------------------------------------------------------------------------------
|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|053|●●●|055|056|057|058|059|●●●|
---------------------------------------------------------------------------------
|●●●|●●●|●●●|●●●|065|●●●|067|●●●|●●●|●●●|●●●|●●●|●●●|●●●|075|●●●|●●●|●●●|●●●|●●●|
---------------------------------------------------------------------------------
|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|091|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|
---------------------------------------------------------------------------------
|●●●|●●●|●●●|104|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|118|●●●|●●●|
---------------------------------------------------------------------------------
|●●●|122|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|134|135|●●●|●●●|138|139|●●●|
---------------------------------------------------------------------------------
|●●●|●●●|●●●|●●●|145|●●●|●●●|●●●|●●●|150|●●●|152|●●●|154|●●●|156|157|158|●●●|160|
---------------------------------------------------------------------------------
|●●●|●●●|163|●●●|165|●●●|167|168|●●●|170|●●●|172|●●●|●●●|175|176|●●●|●●●|179|180|
---------------------------------------------------------------------------------
|●●●|182|183|●●●|185|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|●●●|
---------------------------------------------------------------------------------

Disclaimer: Friends, we are now accepting a third entry. I will check the winning number on the answers list, based on the posted date. Note that the edit history will also be considered.

Results

The winner of the duck in this edition is CarLaTeX, and the chosen number was 50! I recorded the results in my terminal and the session is available here. Thanks everybody for joining the contest! And thanks for being part of this amazing community! Quack! :)

locked by Joseph Wright Dec 30 '16 at 9:25

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. See the help center for guidance on writing a good question.

Read more about locked posts here.

  • 13
    Aside: We are working on a proper random number function for expl3. Bruno's hopefully going to add something soon (and I'm going to bother the XeTeX people for a couple of primitives) – Joseph Wright Nov 9 '16 at 9:14
  • 6
    @JosephWright: oooooh awesome! So ducks do really help LaTeX3 development! :) – Paulo Cereda Nov 9 '16 at 9:15
  • 4
    Gwych! Bendigedig! Hwyaden! – cfr Nov 10 '16 at 1:50
  • 1
    @cfr: I was reflecting that perhaps we need a mathduck package even more than a mathwitch package… ;-) – GuM Dec 3 '16 at 3:25
  • 1
    @GustavoMezzetti But witches have cats! Ducks are great, but I'm not sure about putting one on the back of my broomstick ... But it is like trying to choose between cake and biscuits. Can't we have both?! – cfr Dec 3 '16 at 3:43

76 Answers 76

3
votes

011 and 197

I hope the random algorithm is really random :D

  • 1
    Numbers punched! – Eugene F Nov 21 '16 at 20:43
  • Thanks for joining the contest! – Paulo Cereda Nov 22 '16 at 8:28
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:57
3
votes

I choose 015 and 200 as the smallest and biggest numbers available.

  • Thanks for joining the contest! – Paulo Cereda Nov 22 '16 at 8:28
  • ✓ numbers punched ✓ – percusse Nov 24 '16 at 2:13
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:58
3
votes

41 and 43, the only remaining pair of twin prime numbers.

  • (Card punched!) – GuM Dec 2 '16 at 23:55
  • Thanks for joining the contest! – Paulo Cereda Dec 7 '16 at 14:44
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:59
3
votes

I now pick 018 and 046 as my favorite # clashes :-D !

  • Thanks. I am changing it now!! – Khaaba Dec 6 '16 at 18:45
  • ✓ numbers punched ✓ – percusse Dec 6 '16 at 22:15
  • Thanks for joining the contest! – Paulo Cereda Dec 7 '16 at 14:44
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:59
3
votes

I choose 45 and 70. Good enough for me.

  • Thanks for joining the contest! – Paulo Cereda Dec 7 '16 at 14:45
  • ✓ numbers punched ✓ – percusse Dec 8 '16 at 15:28
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:00
3
votes

I'm going for 162 and 193, otherwise known as ●●● and ●●●.

  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:06
3
votes

I'll take the numbers 119 and 199


Update: third number: 132

  • Thanks for joining the contest! :) – Paulo Cereda Nov 9 '16 at 10:04
  • 1
    ✓ numbers punched ✓ – percusse Nov 9 '16 at 10:16
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:47
  • @PauloCereda updated – daleif Dec 28 '16 at 13:49
  • 1
    Third number updated! – Paulo Cereda Dec 28 '16 at 13:56
3
votes

I nominate the following three bright and shiny numbers: 61, 62, and 64!

  • Thanks for joining the contest! – Paulo Cereda Nov 12 '16 at 23:34
  • ✓ numbers punched ✓ – percusse Nov 13 '16 at 20:28
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:53
  • @PauloCereda - Thanks! I've added "62". :-) – Mico Dec 28 '16 at 14:00
3
votes

105 because it's the product of the first three odd primes.

143 because it's the product of the next two.

Third number: 114 (I think it's a stable island in the periodic table for the transuranics).

3
votes

1 and 146 (sticking to my strategy from the last time)

79 (third choice)

  • ✓ numbers punched ✓ – percusse Nov 9 '16 at 20:55
  • Thanks for joining the contest! – Paulo Cereda Nov 10 '16 at 10:15
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:48
  • @PauloCereda: Thanks for the heads up. Number (79) punched. – Peter Grill Dec 28 '16 at 14:06
3
votes

I choose 006 and 195 . . .

Edit: 182 is my third choice.

  • ✓ numbers punched ✓ – gernot says Reinstate Monica Nov 10 '16 at 16:55
  • Thanks for joining the contest! – Paulo Cereda Nov 11 '16 at 9:14
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:50
  • Thanks for the information. I selected my third number. Please punch for me. – Kumaresh PS Dec 28 '16 at 14:17
3
votes

Maybe, 198 , 180, 189.

Good duck.

3
votes

Symmetric numbers for me! 88 and 181

Third option: 13

3
votes

I will choose 14 and 44 please!

Edit: my 3rd choice is 73, as that's my average grade at university ;)

3
votes

I choose 72 and 98. My third number is 062.

3
votes

I'll go for 86 and 92.

Update: third choice is 96 (punched)!


Which are the median and rounded average of all prime numbers between 0 and 200, respectively. All this calculations should give me some luck... :D

  • Thanks for joining the contest, pal! :) – Paulo Cereda Nov 9 '16 at 9:27
  • ✓ numbers punched ✓ – percusse Nov 9 '16 at 10:16
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:47
3
votes

136 and 186, because... They're as random as every other ones 😀 164 added and punched! Thanks!

3
votes

I choose 35 and 112, because I'm a perfect random number generator :)

EDIT: As my third, and winning number, I chose 149 because that's better than the previous two numbers combined.

  • ✓ numbers punched ✓ – percusse Nov 10 '16 at 9:16
  • Thanks for joining the contest! – Paulo Cereda Nov 10 '16 at 10:16
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:49
3
votes

I'll take 111 and 171 for a lucky duck.

Thanks for the fun!

And 187 for a third.

  • Thanks for joining the contest! – Paulo Cereda Nov 11 '16 at 9:15
  • 1
    ✓ numbers punched ✓ – gernot says Reinstate Monica Nov 11 '16 at 9:21
  • Eleventy-one! (Or perhaps Nelson?) – Joseph Wright Nov 12 '16 at 21:54
  • @JosephWright For the Eleventy-first birthday! – EngBIRD Nov 12 '16 at 21:56
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:52
3
votes

069 and 151. Nice visualisation of punched numbers.

My third choice is 134

  • Thanks for joining the contest! – Paulo Cereda Nov 9 '16 at 13:03
  • ✓ numbers punched ✓ – percusse Nov 9 '16 at 14:56
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:48
3
votes

I choose 27, which is the number corresponding to 'duck' in the Mnemonic major system (and also the number of sporadic groups).

Also 95, which is the number corresponding to 'Paulo' in the MMS.

My third number is 141, because 041 (Cereda) is already taken.

3
votes

Yipee! I'd go for 13 and 17, as well as 123! Thank you!

  • Thanks for joining the contest! – Paulo Cereda Nov 9 '16 at 9:15
  • 1
    ✓ numbers punched ✓ – percusse Nov 9 '16 at 10:16
  • @percusse thank you for having done it for me: I didn't noticed I had sufficient rights to edit the post. my bad. – ebosi Nov 9 '16 at 10:17
  • 1
    no worries.. :) just housekeeping – percusse Nov 9 '16 at 10:19
  • 1
    It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:47
  • @PauloCereda done! thank you – ebosi Dec 28 '16 at 21:20
3
votes

I choose:

093

and

173

and my third number is 094

  • ✓ numbers punched ✓ – Stormvirux Nov 12 '16 at 15:56
  • Thanks for joining the contest! – Paulo Cereda Nov 12 '16 at 23:34
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 13:52
2
votes

I chose the following numbers: 77 and 21

  • Thanks for joining the contest! – Paulo Cereda Nov 12 '16 at 23:34
  • 1
    ✓ numbers punched ✓ – percusse Nov 13 '16 at 20:30
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:00
2
votes

I choose:

026

and

090
  • 3 is taken unfortunately, punched 90 though – percusse Nov 9 '16 at 14:54
  • Thanks for joining the contest! – Paulo Cereda Nov 10 '16 at 10:20
  • Can you choose another number instead of 3 from the table ? – percusse Nov 11 '16 at 9:32
  • I choose then 26. – TobiTeX90 Nov 14 '16 at 6:34
  • ✓ numbers punched ✓ – percusse Nov 14 '16 at 17:03
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:01
  • Then I pick 180! – TobiTeX90 Dec 30 '16 at 7:57
2
votes

And here I am with 017 and 113, thank you for the nice duck!

  • Thanks for joining the contest! – Paulo Cereda Nov 15 '16 at 10:30
  • ✓ numbers punched ✓ – percusse Nov 16 '16 at 12:40
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:01
2
votes

66 and 166 because if she weighs the same as a duck... she's made of wood! (and 666 is the number of the beast and these are the closest numbers available).

enter image description here

(punched)

  • ooh a witch! :) Thanks for joining the contest! – Paulo Cereda Dec 7 '16 at 14:44
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:01
2
votes

I'll chose 102 and 103. Because of reasons

  • those are picked already. See the punch card in the question – percusse Dec 8 '16 at 15:27
  • Oh... Silly me... Editing... Sorry – Elad Den Dec 8 '16 at 17:41
  • Numbers Punched – percusse Dec 8 '16 at 19:19
  • Thanks for joining the contest! – Paulo Cereda Dec 9 '16 at 8:17
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:05
2
votes

Can I get 019 and 078? just because!

  • Numbers Punched – percusse Dec 9 '16 at 1:36
  • Thanks for joining the contest! – Paulo Cereda Dec 9 '16 at 8:18
  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:05
2
votes

116 and 133 because I'm late and these are not taken yet.

  • It is now possible to pick a third number! Hurry! :) – Paulo Cereda Dec 28 '16 at 14:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .