2018-10-10 22:03:03 +00:00
---
id: 5900f4cf1000cf542c50ffe1
2021-02-06 04:42:36 +00:00
title: 'Problem 354: Distances in a bee''s honeycomb'
2018-10-10 22:03:03 +00:00
challengeType: 5
2021-02-06 04:42:36 +00:00
forumTopicId: 302014
2021-01-13 02:31:00 +00:00
dashedName: problem-354-distances-in-a-bees-honeycomb
2018-10-10 22:03:03 +00:00
---
2020-12-16 07:37:30 +00:00
# --description--
2018-10-10 22:03:03 +00:00
2021-02-06 04:42:36 +00:00
Consider a honey bee's honeycomb where each cell is a perfect regular hexagon with side length 1.
2018-10-10 22:03:03 +00:00
2021-02-06 04:42:36 +00:00
One particular cell is occupied by the queen bee. For a positive real number L, let B(L) count the cells with distance L from the queen bee cell (all distances are measured from centre to centre); you may assume that the honeycomb is large enough to accommodate for any distance we wish to consider. For example, B(√3) = 6, B(√21) = 12 and B(111 111 111) = 54.
2018-10-10 22:03:03 +00:00
2021-02-06 04:42:36 +00:00
Find the number of L ≤ 5·1011 such that B(L) = 450.
2018-10-10 22:03:03 +00:00
2020-12-16 07:37:30 +00:00
# --hints--
2018-10-10 22:03:03 +00:00
2021-02-06 04:42:36 +00:00
`euler354()` should return 58065134.
2018-10-10 22:03:03 +00:00
```js
2020-12-16 07:37:30 +00:00
assert.strictEqual(euler354(), 58065134);
2018-10-10 22:03:03 +00:00
```
2021-01-13 02:31:00 +00:00
# --seed--
## --seed-contents--
```js
function euler354() {
return true;
}
euler354();
```
2020-12-16 07:37:30 +00:00
# --solutions--
2020-08-13 15:24:35 +00:00
2021-01-13 02:31:00 +00:00
```js
// solution required
```