Republic of Mathematics blog

The number 3608528850368400786036725

Posted by: Gary Ernest Davis on: February 21, 2015


Ben Vitale (@BenVitale) announced that 3608528850368400786036725 is  a 25 digit number with the property that  each number formed by its first n digits is divisible by n, for n from 1 through 25.

How could we find similar numbers, and could there be a larger number than 3608528850368400786036725 with this property? (which we will call the Vitale property)

The numbers with 2 digits having the Vitale property are just the even numbers between 10 and 98.

We will investigate this issue using Mathematica®, so here’s our list of such 2 digit numbers generated in Mathematica®:

vitaleproperty[2] = Range[10, 99, 2]



How about numbers with 3 digits with the Vitale property?

They have to be obtained from even numbers by adding a digit to the left, and must be divisible by 3.

Here’s how Mathematica® can generate all the numbers obtained by appending a digit from a given number:

adddigits[n_] := Table[FromDigits[Append[IntegerDigits[n], d]], {d, 0, 9}]

For example, here’s what we get by applying the adddigits function to 248:


{2480, 2481, 2482, 2483, 2484, 2485, 2486, 2487, 2488, 2489}

To obtain 3 digit numbers with the Vitale property we have to append a digit to even numbers, and check which resulting 3 digit numbers are divisible by 3:

Cases[Flatten[Map[adddigits, vitaleproperty[2]]], x_ /; Mod[x, 3] == 0]










 These are the 3 digit numbers divisible by 3, who’s first 2 digits are divisible by 2.

This suggests how we can recursively build n digit numbers with the Vitale property, from n-1 digit numbers with the Vitale property:

vitaleproperty[n_] := vitaleproperty[n] = Cases[Flatten[Map[adddigits, vitaleproperty[n – 1]]], x_ /; Mod[x, n] == 0]

For example:





























The size of the collection of n-digit numbers with the Vitale property grows with n for a while, but then begins to decrease:

T = Table[{n, Length[vitaleproperty[n]]}, {n, 2, 15}]


A plot shows this initials increase and then decrease quite markedly:

ListPlot[T, PlotStyle -> Red, PlotMarkers -> {Automatic, Medium}]


So, lets’s calculate, and plot, the number of n-digit numbers with the Vitale property versus n for n from 2 through 26:

T = Table[{n, Length[vitaleproperty[n]]}, {n, 2, 26}]


ListPlot[T, PlotStyle -> Red, PlotMarkers -> {Automatic, Medium}]


So we see that there is exactly one 25 digit number with the Vitale property – the venerable 3608528850368400786036725 – and that appending any of the digits 0 through 9 to this number does not result in a 26 digit number that is divisible by 26. This means that 3608528850368400786036725 is the LARGEST number with the Vitale property.

Kudos to Ben Vitale for finding it!

Postscript: Éric Angelini points out that the number 3608528850368400786036725, and its properties discussed above, appears in the Online Encyclopedia of Integer Sequences.

Coffee, Love and Matrix Algebra – a review

Posted by: Gary Ernest Davis on: November 15, 2014

CoffeeLoveAlgebraGary Ernest Davis
Publisher:  Republic of Mathematics
Publication Date: 2014
Number of Pages:  389
Format:  Paperback
ISBN: 9780692262306
David A. Huckaby is an associate professor of mathematics at Angelo State University.


Coffee, Love, and Matrix Algebra is a delightful work of fiction that chronicles the events of roughly a year in the life of the mathematics department at a university in Rhode Island. Can there be entertainment value in a book whose principal characters are math professors? Believe it or not, this is a page turner: The reader becomes emotionally invested in the ten to fifteen central characters and humor abounds throughout.

Many of the familiar features of academia are present. Faculty spar with administrators and faculty spar with faculty. In this particular department, there are essentially two groups: an energetic society of junior faculty engaged in exciting research, mostly in applied mathematics and/or statistics, and a smaller collection of senior faculty who no longer are — or never were — doing research. Members of the latter group for the most part stand in the way of the various initiatives that the younger faculty propose and strive to realize. Which group will exert more influence?

The main character is the very self-absorbed Jeffrey Albacete, whose fame in mathematics circles is due entirely to his very popular textbook Matrix Algebra, now in its 9th edition. Jeffrey is content, knowing that he is regarded internationally as an expert in matrix algebra. In Jeffrey’s opinion, the International Linear Algebra Society puts too much emphasis on linear algebra. The breakaway International Matrix Algebra Society, of which Jeffrey is a founding member and past president, puts the emphasis in the right place — on matrix algebra — and holds his textbookMatrix Algebra in high esteem. This is academic math humor done right.

Jeffrey enjoys sitting in his office and looking over all of the editions of his influential textbook. He also enjoys drinking coffee. Part of his routine is to walk to the campus gym, spend a few very leisurely minutes on the exercise bike, and then head over to the Daily Grind, a campus coffee shop. While he waits in line to order coffee, he counts the number of customers ahead of him in the queue and estimates the number of bricks on the wall. He muses about how humans start with counting and then progress to advanced topics like matrix algebra, of which he is an acknowledged expert. (Readers who share Jeffrey’s counting compulsion might want to count how many blueberry muffins he consumes over the course of the story.)

Fortunately, most of the abundant humor in the book derives neither from mathematical compulsions nor from the perceived strangeness of mathematicians. Most of the characters would be at home in any intellectual line of work, and much of the book’s humor in founded in the characters’ humanity, especially in their relationships with each other. Numerous ironic comments and observations, ranging from explicit to subtle, focus on characters’ foibles and interactions; the best of these remarks are worthy of Austen or Trollope. So one need not be a math professor to enjoy the book, although it is undoubtedly helpful. Granted, plenty of the mirth derives from the absurdities of academia, and the story delights those of us on “the inside” because it paints such an accurate picture of our work lives. Thankfully, however, perhaps even this academic humor can find an audience beyond the ivory tower: When situations arise that might be opaque to “outsiders,” the author routinely devotes a paragraph to spelling things out.

The characters who receive the most favorable treatment in the book — including those outside the university — are young, bright, driven, and for the most part technologically proficient. Their home is scientific computation, broadly defined, as they work to both advance and disseminate knowledge. One character who does not dwell in this realm is Alex the dog, who like Snoopy doesn’t talk but has powers beyond those of the typical canine. Another non-human character is perhaps the author’s favorite: Wolfram Research’s Computable Document Format. It is lauded throughout, even to the point that on more than one occasion someone conjectures that MathWorks must be sweating bullets.

Most of the main characters have good intentions as they strive to excel at their jobs and positively influence those around them. The characters frequently offer each other (and us) a healthy dose of simple wisdom, such as to view the vagaries of life not as problems but as opportunities. Over the course of the story, the optimistic and energetic characters do exert an influence on the pessimistic and moribund, but exactly how I will leave to the reader to discover. This is an enjoyable read and highly recommended.