NZ Herald
  • Home
  • Latest news
  • Herald NOW
  • Video
  • New Zealand
  • Sport
  • World
  • Business
  • Entertainment
  • Podcasts
  • Quizzes
  • Opinion
  • Lifestyle
  • Travel
  • Viva
  • Weather

Subscriptions

  • Herald Premium
  • Viva Premium
  • The Listener
  • BusinessDesk

Sections

  • Latest news
  • New Zealand
    • All New Zealand
    • Crime
    • Politics
    • Education
    • Open Justice
    • Scam Update
  • Herald NOW
  • On The Up
  • World
    • All World
    • Australia
    • Asia
    • UK
    • United States
    • Middle East
    • Europe
    • Pacific
  • Business
    • All Business
    • MarketsSharesCurrencyCommoditiesStock TakesCrypto
    • Markets with Madison
    • Media Insider
    • Business analysis
    • Personal financeKiwiSaverInterest ratesTaxInvestment
    • EconomyInflationGDPOfficial cash rateEmployment
    • Small business
    • Business reportsMood of the BoardroomProject AucklandSustainable business and financeCapital markets reportAgribusiness reportInfrastructure reportDynamic business
    • Deloitte Top 200 Awards
    • CompaniesAged CareAgribusinessAirlinesBanking and financeConstructionEnergyFreight and logisticsHealthcareManufacturingMedia and MarketingRetailTelecommunicationsTourism
  • Opinion
    • All Opinion
    • Analysis
    • Editorials
    • Business analysis
    • Premium opinion
    • Letters to the editor
  • Politics
  • Sport
    • All Sport
    • OlympicsParalympics
    • RugbySuper RugbyNPCAll BlacksBlack FernsRugby sevensSchool rugby
    • CricketBlack CapsWhite Ferns
    • Racing
    • NetballSilver Ferns
    • LeagueWarriorsNRL
    • FootballWellington PhoenixAuckland FCAll WhitesFootball FernsEnglish Premier League
    • GolfNZ Open
    • MotorsportFormula 1
    • Boxing
    • UFC
    • BasketballNBABreakersTall BlacksTall Ferns
    • Tennis
    • Cycling
    • Athletics
    • SailingAmerica's CupSailGP
    • Rowing
  • Lifestyle
    • All Lifestyle
    • Viva - Food, fashion & beauty
    • Society Insider
    • Royals
    • Sex & relationships
    • Food & drinkRecipesRecipe collectionsRestaurant reviewsRestaurant bookings
    • Health & wellbeing
    • Fashion & beauty
    • Pets & animals
    • The Selection - Shop the trendsShop fashionShop beautyShop entertainmentShop giftsShop home & living
    • Milford's Investing Place
  • Entertainment
    • All Entertainment
    • TV
    • MoviesMovie reviews
    • MusicMusic reviews
    • BooksBook reviews
    • Culture
    • ReviewsBook reviewsMovie reviewsMusic reviewsRestaurant reviews
  • Travel
    • All Travel
    • News
    • New ZealandNorthlandAucklandWellingtonCanterburyOtago / QueenstownNelson-TasmanBest NZ beaches
    • International travelAustraliaPacific IslandsEuropeUKUSAAfricaAsia
    • Rail holidays
    • Cruise holidays
    • Ski holidays
    • Luxury travel
    • Adventure travel
  • Kāhu Māori news
  • Environment
    • All Environment
    • Our Green Future
  • Talanoa Pacific news
  • Property
    • All Property
    • Property Insider
    • Interest rates tracker
    • Residential property listings
    • Commercial property listings
  • Health
  • Technology
    • All Technology
    • AI
    • Social media
  • Rural
    • All Rural
    • Dairy farming
    • Sheep & beef farming
    • Horticulture
    • Animal health
    • Rural business
    • Rural life
    • Rural technology
    • Opinion
    • Audio & podcasts
  • Weather forecasts
    • All Weather forecasts
    • Kaitaia
    • Whangārei
    • Dargaville
    • Auckland
    • Thames
    • Tauranga
    • Hamilton
    • Whakatāne
    • Rotorua
    • Tokoroa
    • Te Kuiti
    • Taumaranui
    • Taupō
    • Gisborne
    • New Plymouth
    • Napier
    • Hastings
    • Dannevirke
    • Whanganui
    • Palmerston North
    • Levin
    • Paraparaumu
    • Masterton
    • Wellington
    • Motueka
    • Nelson
    • Blenheim
    • Westport
    • Reefton
    • Kaikōura
    • Greymouth
    • Hokitika
    • Christchurch
    • Ashburton
    • Timaru
    • Wānaka
    • Oamaru
    • Queenstown
    • Dunedin
    • Gore
    • Invercargill
  • Meet the journalists
  • Promotions & competitions
  • OneRoof property listings
  • Driven car news

Puzzles & Quizzes

  • Puzzles
    • All Puzzles
    • Sudoku
    • Code Cracker
    • Crosswords
    • Cryptic crossword
    • Wordsearch
  • Quizzes
    • All Quizzes
    • Morning quiz
    • Afternoon quiz
    • Sports quiz

Regions

  • Northland
    • All Northland
    • Far North
    • Kaitaia
    • Kerikeri
    • Kaikohe
    • Bay of Islands
    • Whangarei
    • Dargaville
    • Kaipara
    • Mangawhai
  • Auckland
  • Waikato
    • All Waikato
    • Hamilton
    • Coromandel & Hauraki
    • Matamata & Piako
    • Cambridge
    • Te Awamutu
    • Tokoroa & South Waikato
    • Taupō & Tūrangi
  • Bay of Plenty
    • All Bay of Plenty
    • Katikati
    • Tauranga
    • Mount Maunganui
    • Pāpāmoa
    • Te Puke
    • Whakatāne
  • Rotorua
  • Hawke's Bay
    • All Hawke's Bay
    • Napier
    • Hastings
    • Havelock North
    • Central Hawke's Bay
    • Wairoa
  • Taranaki
    • All Taranaki
    • Stratford
    • New Plymouth
    • Hāwera
  • Manawatū - Whanganui
    • All Manawatū - Whanganui
    • Whanganui
    • Palmerston North
    • Manawatū
    • Tararua
    • Horowhenua
  • Wellington
    • All Wellington
    • Kapiti
    • Wairarapa
    • Upper Hutt
    • Lower Hutt
  • Nelson & Tasman
    • All Nelson & Tasman
    • Motueka
    • Nelson
    • Tasman
  • Marlborough
  • West Coast
  • Canterbury
    • All Canterbury
    • Kaikōura
    • Christchurch
    • Ashburton
    • Timaru
  • Otago
    • All Otago
    • Oamaru
    • Dunedin
    • Balclutha
    • Alexandra
    • Queenstown
    • Wanaka
  • Southland
    • All Southland
    • Invercargill
    • Gore
    • Stewart Island
  • Gisborne

Media

  • Video
    • All Video
    • NZ news video
    • Herald NOW
    • Business news video
    • Politics news video
    • Sport video
    • World news video
    • Lifestyle video
    • Entertainment video
    • Travel video
    • Markets with Madison
    • Kea Kids news
  • Podcasts
    • All Podcasts
    • The Front Page
    • On the Tiles
    • Ask me Anything
    • The Little Things
  • Cartoons
  • Photo galleries
  • Today's Paper - E-editions
  • Photo sales
  • Classifieds

NZME Network

  • Advertise with NZME
  • OneRoof
  • Driven Car Guide
  • BusinessDesk
  • Newstalk ZB
  • Sunlive
  • ZM
  • The Hits
  • Coast
  • Radio Hauraki
  • The Alternative Commentary Collective
  • Gold
  • Flava
  • iHeart Radio
  • Hokonui
  • Radio Wanaka
  • iHeartCountry New Zealand
  • Restaurant Hub
  • NZME Events

SubscribeSign In
Advertisement
Advertise with NZME.
Home / New Zealand

Mathematician finds magic in numbers

By Catherine Masters
Property Journalist·NZ Herald·
15 Jan, 2010 03:00 PM8 mins to read

Subscribe to listen

Access to Herald Premium articles require a Premium subscription. Subscribe now to listen.
Already a subscriber?  Sign in here

Listening to articles is free for open-access content—explore other articles or learn more about text-to-speech.
‌
Save

    Share this article

Magician/Mathematician Persi Diaconis always wanted to find the perfect random shuffle - the equation behind him is his mathematical model for shuffling a deck of cards. Photo / Brett Phibbs

Magician/Mathematician Persi Diaconis always wanted to find the perfect random shuffle - the equation behind him is his mathematical model for shuffling a deck of cards. Photo / Brett Phibbs

The 64-year-old shuffling an imaginary pack cards in the maths department at Auckland University was five when he discovered a book of magic in the attic and started doing tricks.

Persi Diaconis is still doing tricks but all those decades later they have a wider purpose than mere entertainment, entertaining
though they are.

The former professional magician uses card tricks, or sometimes coin tossing, to demonstrate the "beauty" of mathematics. In New Zealand he is delivering a lecture series on how the two professions intertwine. In his world, there is literally magic in maths and maths in magic in his world

Now a professor of Mathematics and Statistics at California's Stanford University, Diaconis has used maths and playing cards to work out tricks that have fooled other magicians.

He can also use maths to detect cheating gamblers and, as a magician, has debunked so-called psychics such as Uri Geller, who took America by storm in the 1970s claiming he used his mind to bend spoons. (Just for the record, Diaconis says Geller uses not very good sleight of hand.)

Diaconis is hooked mostly, though, on randomness and probability, using mathematics to solve such concepts as how often a deck of cards must be shuffled before it is truly random.

He credits that early book from the attic - Thurston's Four Hundred Tricks You Can Do - for turning his world around.

As a youngster growing up in Manhattan with a musical Polish mother and a musical Greek father, Diaconis was a promising violinist and was accepted into the prestigious Julliard School of Performing Arts.

But what he really loved was magic. He'd practise, and cut school to go to the magic store. He and other kids would hang out at cafes where magicians gathered, until one day, along came the chance of a lifetime.

The kids sat a little apart from the magicians and this day Diaconis was practising his dealing when behind him a voice said "that's very good, I know who your teacher was."

The voice was that of Dai Vernon, one of the most respected sleight-of-hand magicians in the world.

Vernon went to sit with the other magicians, then called Diaconis over to demonstrate his dealing, which involved keeping the ace of spades at the top of the pack.

"And he said 'this kid can do that and none of you can do that', and he said 'now why don't you guys practise like that?' He said, 'son, from now on you can sit with us'."

The pair became friends and when Diaconis was 14, Vernon invited him on the road. Diaconis ran away from home to become the magician's apprentice.

They drove from city to city and Diaconis soaked up everything he could from the older man.

"And we'd hunt down crooked gamblers, because crooked gamblers are often very skilful because if they're not, you know, they get their arms broken."

Thus, Diaconis became seduced by the mathematics of gambling. A lot of the conversation with crooked gamblers revolved around probability, he says.

"Things like, what's the chance of throwing two sevens before a six and an eight. I got fascinated with how they calculate those odds and stuff like that."

One day a friend recommended he read a book on probability by William Feller which he bought, only to find he couldn't read it.

So he enrolled in night school to learn calculus and made a living as a magician by day.

When he was 17 and was out on his own, he read in a newspaper about Ed Thorp, an American mathematician who worked out you could beat black jack by counting cards, so Diaconis called him up.

He went to work with him, learnt the mathematics of counting cards and went around casinos, making money counting cards.

In his 20s, he was accepted into Harvard University and has specialised in probability theory and statistics - or the mathematics of randomness.

Diaconis has an entertaining and fascinating mind. During this interview he talks about binary and prime numbers and how they relate to shuffling cards and sometimes, due to his affability or perhaps the magician in him, I think I glimpse what he's talking about.

Well, a bit. Such as when he had a go at explaining the Riemann Hypothesis. Whole books have been written trying to explain this hypothesis to laypeople.

It's one of mathematics' so-called $1 million Millennium problems, of which there are seven.

These are problems which have eluded mathematicians and which if solved win you a cool $1 million apiece.

The Riemann Hypothesis is quite hard to explain, says Diaconis, but involves prime numbers.

The easy bit is these are numbers which can't be divided by anything except one and themselves. One question they pose, he says, is do prime numbers keep going forever or do they eventually stop?

Euclid, the ancient Greek known as the Father of Geometry, apparently proved there were infinitely many primes. But if there are infinitely many primes, how many primes are there?

"In the sense that if I go from one to 100, some of the numbers are prime. If I go from 100 to 1000 I get more primes. If I keep going up to X, where X was 100 before and then 1000, how many primes are there?"

The answer, he says, is probably X divided by the logarithm of X.

"Now, maybe that's hard and if you want to get the right answer to that question, that's equivalent to the Riemann Hypothesis."

Got it?

In other words, he explains, "a good approximation of how many primes there are up to X, that's a good equivalent to the Riemann's Hypothesis."

Aha. Um. Perhaps not surprisingly, he thinks this problem won't be solved in his lifetime, though he thinks eventually it will.

"That keeps happening; stuff that's been a mystery since the Greeks, then somebody figures it out."

Diaconis persists at trying to explain maths and does so with aplomb when describing the opening to his talk. This time I glimpse the magician's showmanship.

He walks into the room and the audience applause.

He says to them "it's natural to wonder, if you're coming to a talk that's called Mathematics and Magic Tricks, is there actually going to be any magic?"

He brings out a pack of cards, shuffles them, puts a rubber band around them and tosses them to someone in the front row.

He asks them to toss the pack to the back and the deck is thrown randomly to the back.

He asks the person who catches them to cut the cards and give them to the next person who cuts them and hands them over. This happens five times.

"I say, 'now this is going to sound strange in an academic environment but I want everybody to look at their card and concentrate on that".

Academics usually burst out laughing at this.

He tells them they're doing a great job concentrating but he's getting a jumble of information, so would everyone with a red card stand up because he sees red in his mind better than black.

People with red cards stand up.

"Now, let's see," he says, "you've got a red card - it's a heart isn't it? Seven of hearts?" He names all the cards and gets them right.

"And the thing is, that's quite a good trick because I can't see the cards often and it seems somehow spooky."

But it's just maths.

He's obtained some information from the participants, such as how many people had a red card.

From there, he can work out the different possibilities of how the deck of cards played out as it was cut.

"It turns out the deck is arranged so that every possible combination occurs exactly once and there are 32 cards handed out and so their pattern codes to me which way it's played out. "So that's a very nice trick, right? And it's a trick that fools magicians because they just can't imagine, they think I have X-ray glasses on or stooges behind, you know, the people who signal the cards."

Though this might all seem to be trickery, there are serious applications. Diaconis explains about De Brujin sequences which relate to card patterns but which are used in many different areas, from "smartpens" which record on special paper containing unique patterns, to reading DNA, to cryptography (the way spies talk to each other) to how your credit card works.

Ah, I say, having the smallest of eureka moments, this is what you mean by the beauty of maths?

He smiles. Maths is not only beautiful, he says, it's useful too.

Advertisement
Advertise with NZME.
Advertisement
Advertise with NZME.
Save

    Share this article

Latest from New Zealand

Premium
New Zealand

Love this City: The wind in Luxon’s hair, better housing and more dogs, roads and Matariki magic

04 Jul 05:00 PM
New Zealand

'Major concern': 200 children lack safe beds in Northland

04 Jul 05:00 PM
Premium
Opinion

Thomas Coughlan: Govt mulls dramatic local government reform, slashing councils

04 Jul 05:00 PM

There’s more to Hawai‘i than beaches and buffets – here’s how to see it differently

sponsored
Advertisement
Advertise with NZME.
Recommended for you
'Real and unequal': MP's death highlights kidney disease crisis among Māori
Kahu

'Real and unequal': MP's death highlights kidney disease crisis among Māori

04 Jul 05:00 PM
Morning quiz: Who painted Girl with a Pearl Earring?
New Zealand

Morning quiz: Who painted Girl with a Pearl Earring?

04 Jul 05:00 PM
Bosson in right head space and weight range for racing return
Racing

Bosson in right head space and weight range for racing return

04 Jul 05:00 PM
What to watch at this year's Whānau Mārama: NZ International Film Festival
Entertainment

What to watch at this year's Whānau Mārama: NZ International Film Festival

04 Jul 05:00 PM
'Sassy' success: Climate-resilient apple's exports set to double
The Country

'Sassy' success: Climate-resilient apple's exports set to double

04 Jul 05:00 PM

Latest from New Zealand

Premium
Love this City: The wind in Luxon’s hair, better housing and more dogs, roads and Matariki magic

Love this City: The wind in Luxon’s hair, better housing and more dogs, roads and Matariki magic

04 Jul 05:00 PM

Opinion: Goings on at Auckland Council and other highlights of the week.

'Major concern': 200 children lack safe beds in Northland

'Major concern': 200 children lack safe beds in Northland

04 Jul 05:00 PM
Premium
Thomas Coughlan: Govt mulls dramatic local government reform, slashing councils

Thomas Coughlan: Govt mulls dramatic local government reform, slashing councils

04 Jul 05:00 PM
‘Huge growth potential’: Willis on wool challenges during visit to NZ’s biggest scourer

‘Huge growth potential’: Willis on wool challenges during visit to NZ’s biggest scourer

04 Jul 05:00 PM
From early mornings to easy living
sponsored

From early mornings to easy living

NZ Herald
  • About NZ Herald
  • Meet the journalists
  • Newsletters
  • Classifieds
  • Help & support
  • Contact us
  • House rules
  • Privacy Policy
  • Terms of use
  • Competition terms & conditions
  • Our use of AI
Subscriber Services
  • NZ Herald e-editions
  • Daily puzzles & quizzes
  • Manage your digital subscription
  • Manage your print subscription
  • Subscribe to the NZ Herald newspaper
  • Subscribe to Herald Premium
  • Gift a subscription
  • Subscriber FAQs
  • Subscription terms & conditions
  • Promotions and subscriber benefits
NZME Network
  • The New Zealand Herald
  • The Northland Age
  • The Northern Advocate
  • Waikato Herald
  • Bay of Plenty Times
  • Rotorua Daily Post
  • Hawke's Bay Today
  • Whanganui Chronicle
  • Viva
  • NZ Listener
  • Newstalk ZB
  • BusinessDesk
  • OneRoof
  • Driven Car Guide
  • iHeart Radio
  • Restaurant Hub
NZME
  • About NZME
  • NZME careers
  • Advertise with NZME
  • Digital self-service advertising
  • Book your classified ad
  • Photo sales
  • NZME Events
  • © Copyright 2025 NZME Publishing Limited
TOP
search by queryly Advanced Search