--- title: Hofstadter Q sequence id: 59637c4d89f6786115efd814 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof hofstadterQ === "function", "hofstadterQ is a function.");' - text: '' testString: 'assert(Number.isInteger(hofstadterQ(1000)), "hofstadterQ() should return integer");' - text: '' testString: 'assert.equal(hofstadterQ(testCase[0]), res[0], "hofstadterQ(1000) should return 502");' - text: '' testString: 'assert.equal(hofstadterQ(testCase[1]), res[1], "hofstadterQ(1500) should return 755");' - text: '' testString: 'assert.equal(hofstadterQ(testCase[2]), res[2], "hofstadterQ(2000) should return 1005");' - text: '' testString: 'assert.equal(hofstadterQ(testCase[3]), res[3], "hofstadterQ(2500) should return 1261");' ```
## Challenge Seed
```js function hofstadterQ (n) { // Good luck! return n; } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```