freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-462-permutation-of-3-smooth-numbers.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

1.2 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f53b1000cf542c51004d 问题4623个平滑数的排列 5 problem-462-permutation-of-3-smooth-numbers

--description--

3平滑数是没有素数因子大于3的整数。对于整数N我们将SN定义为小于或等于N的3平滑数的集合。例如S20= {1,2,3,4,6,8,9,12,16,18}。

我们将FN定义为SN的排列数其中每个元素都在其所有适当的除数之后。

这是N = 20的可能排列之一。

  • 1,2,4,3,9,8,16,6,18,12。这不是有效的排列因为12在它的除数6之前出现。
  • 1,2,4,3,9,8,12,16,6,18。

我们可以验证F6= 5F8= 9F20= 450和F1000≈8.8521816557e21。找到F1018。给出你的答案它的科学记数在小数点后四舍五入到十位数。在给出答案时使用小写e来分隔尾数和指数。例如如果答案是112,233,445,566,778,899则答案格式为1.1223344557e17。

--hints--

euler462()应返回Infinity。

assert.strictEqual(euler462(), Infinity);

--seed--

--seed-contents--

function euler462() {

  return true;
}

euler462();

--solutions--

// solution required