21 lines
374 B
C++
21 lines
374 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
class Jacobstahl
|
|
{
|
|
public:
|
|
Jacobstahl();
|
|
Jacobstahl(const Jacobstahl &other);
|
|
Jacobstahl &operator=(const Jacobstahl &other);
|
|
~Jacobstahl();
|
|
|
|
int get(int n);
|
|
std::vector<int> getUpTo(int n);
|
|
int getAfter(int n);
|
|
|
|
private:
|
|
int getRecursive(int n);
|
|
std::vector<int> _jacobstahl_numbers;
|
|
};
|