Ben Chuanlong Du's Blog

And let it direct your passion with reason.

First 10-digit Prime in Consecutive Digits of Euler Constant?

One day my friend Ru He asked me a question.

What is the first 10-digit prime found in consecutive digits of e?

This is an easy problem with the help of Mathematica. The following is the Mathematica code I wrote to solve this question. It actually solves the general problem …

Useful Packages and Commands for LaTex

Math Packages

  1. \usepackage{amssymb}
    • popular math fonts
  2. \usepackage{dsfont}
    • \mathds font
  3. \usepackage{bm} % bold math symbols
    • bold math symbols
  4. \usepackage{amsmath}
    • math formulas.
  5. \usepackage{amsthm}
    • theorem environments
    • proof enviroment

List Packages

  1. \usepackage{enumerate}
    • universal list

Graphics Packages

  1. \usepackage{ifpdf}
    • allow including figures without extensions and select the right type of …

The Power of Generating Functions

Generating functions is a very powerful way to find closed formula for sequences defined iteratively. I was so bored during the final week, so I went on internet for fun. Finally I found someone from Sydney University was asking for help on this question:

(a) If Ln=Ln-1+Ln-2 for …

The Sum and Product Puzzle

I talked about an interesting problem in this post. I had onsite-inteviews from Wolfram at the end of April this year, and I decided to talk how to solve the problem using Mathematica. I did some research and realized that the problem is a well-known one which is called the …

Sun Bin PK Pang Juan

Dating back to the time when I was a sophomore, I read a very interesting problem from "Waming", which is a magazine of math department of USTC (University of Science and Technology of China).

One day Guigu Zi (a famous ancient Chinese sophist, the teacher of Sun Bin and Pang …

Inverse of a Special Class of Matrices with High Dimensions

One day, my officemate Tieming asked me about a problem that she met in her research. Suppose \(\boldsymbol{B}\) is a symmetric matrix of huge dimension and \(\boldsymbol{D}\) is a diagonal matrix with nonnegative diagonal elements. The inverse of \(\boldsymbol{B}\) is already known, how can we calculate the …