Problem 32 Pandigital products

2016-10-13 10:23:00

We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigital.

The product 7254 is unusual, as the identity, 39 × 186 = 7254, containing multiplicand, multiplier, and product is 1 through 9 pandigital.

Find the sum of all products whose multiplicand/multiplier/product identity can be written as a 1 through 9 pandigital.

HINT: Some products can be obtained in more than one way so be sure to only include it once in your sum.

技术  projecteulor python projecteulor python
 

Problem 31 Coin sums

2016-10-12 09:41:00

In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:

1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).

It is possible to make £2 in the following way:

1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p

How many different ways can £2 be made using any number of coins?

技术  projecteulor python
 

Problem 29 Distinct powers

2016-10-11 09:50:00

Consider all integer combinations of \(a^b\) for \(2 ≤ a ≤ 5\) and \(2 ≤ b ≤ 5\):

\[2^2=4, 2^3=8, 2^4=16, 2^5=32\] \[3^2=9, 3^3=27, 3^4=81, 3^5=243\] \[4^2=16, 4^3=64, 4^4=256, 4^5=1024\] \[5^2=25, 5^3=125, 5^4=625, 5^5=3125\]

If they are then placed in numerical order, with any repeats removed, we get the following sequence of 15 distinct terms:

4, 8, 9, 16, 25, 27, 32, 64, 81, 125, 243, 256, 625, 1024, 3125

How many distinct terms are in the sequence generated by \(a^b\) for \(2 ≤ a ≤ 100\) and \(2 ≤ b ≤ 100\)?

技术  projecteulor python
 

Problem 27 Quadratic primes

2016-10-10 12:05:00

Euler discovered the remarkable quadratic formula:

\[n^2 + n + 41\]

It turns out that the formula will produce 40 primes for the consecutive integer values \(0 \le n \le 39\). However, when \(n = 40, 40^2 + 40 + 41 = 40(40 + 1) + 41\) is divisible by 41, and certainly when \(n = 41, 41^2 + 41 + 41\) is clearly divisible by 41.

The incredible formula \(n^2 - 79n + 1601\) was discovered, which produces 80 primes for the consecutive values \(0 \le n \le 79\). The product of the coefficients, −79 and 1601, is −126479.

Considering quadratics of the form:

\(n^2 + an + b\), where \(|a|< 1000\) and \(|b|\le1000\)

where \(|n|\) is the modulus/absolute value of \(n\)

e.g. \(|11| = 11\) and \(|−4| = 4\)

Find the product of the coefficients, \(a\) and \(b\), for the quadratic expression that produces the maximum number of primes for consecutive values of \(n\), starting with \(n = 0\).

技术  projecteulor python
 

再见sae

2016-09-18 09:21:00

8月的时候其实sae已经欠费停应用了,已经开始大规模迁移github.io了

但是其实到现在还有那么若干篇关于FR的还没弄过来

还有一些python小应用什么的没有弄过来

至少这种一天48云豆的实在接受不能,算下来还没有在AWS上面搭个instance合算(阿里云不知道,没用过)

后来发现其实我也就是弄弄小前端,根本不需要嘛

实质性的改变就是,我的兴趣直接从python+django转移到了js和相关的各种jquery, typescript, react上了

技术 
 

Minecraft is coming to China

2016-05-23 10:21:31

之前在群里就听到小伙伴说网易要代理Minecraft。

小伙伴是丢了一mc.163.com,评论道,还有若干看上去很逗逼的宣传视频,然后没有了,有了,了。。。

官方声明

搜了一堆资料,不太明白网易以什么形式代理,不过知乎上面已经各种讨论了,如何看待网易代理 Minecraft ?

我得到的信息好像是这样:

  1. 好像和java版本没关系……
  2. 好像和已经买的正版账号没关系……
  3. 会有中国定制版本,按照视频的特点,说不定会有中国功夫(<–这个是我的脑洞)
  4. 没玩过网易代理的魔兽,所以不太理解买断的涵义
  5. 各种懵逼……
游戏  Minecraft 新闻
 

我的世界

2016-03-31 23:10:31

最近迷恋上了Minecraft这款游戏。

其实知乎介绍了很久了,但是一直没尝试。

一开始也就是很无耻地在安卓上玩盗版,但是玩着玩着就是在忍不住买了个PC正版的帐号。

游戏  Minecraft