menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Stacking p...
source image

Johndcook

4w

read

262

img
dot

Stacking positive and negative cannonballs

  • Soldiers tasked with stacking cannonballs must arrange them in tetrahedra as per the new commander's OCD requirements.
  • The number of cannonballs in the nth tetrahedron layer is known as the nth tetrahedral number.
  • Not every number is a tetrahedral number, but it's usually possible to stack any number into no more than four tetrahedra.
  • Two ways to meet the commander's demands are listed: avoiding certain numbers or allowing negative cannonballs for stacking.
  • Sir Frederick Pollock's conjecture on tetrahedral numbers, proposing sums of at most five tetrahedral numbers, is still open.
  • Negative cannonballs can be used to stack any integer as the sum of four tetrahedral numbers.
  • A Python code check function is provided to determine if an arrangement of n cannonballs into four tetrahedral piles is possible.
  • The use of formulas to generalize definitions, like in tetrahedral numbers, requires conscious handling for better understanding.

Read Full Article

like

15 Likes

For uninterrupted reading, download the app