login
A345702
Numbers that can be written as 2*a^2 - 1 and 3*b^3 - 1.
0
-1, 647, 41471, 472391, 2654207, 10124999, 30233087, 76236551, 169869311, 344373767, 647999999, 1147971527, 1934917631, 3127772231, 4879139327, 7381124999, 10871635967, 15641144711, 22039921151, 30485730887, 41471999999, 55576446407, 73470177791, 95927256071, 123834728447
OFFSET
1,2
FORMULA
G.f.: x*(647*x^6+36942*x^5+195681*x^4+195716*x^3+36921*x^2+654*x-1)/(1-x)^7. - Alois P. Heinz, Jun 24 2021
a(n) = 648*(n-1)^6 - 1 = 648*A001014(n-1) - 1. - Hugo Pfoertner, Jun 24 2021
EXAMPLE
647 = 2*18^2 - 1 = 3*6^3 - 1. Thus, 647 is in this sequence.
MATHEMATICA
Intersection[Table[2 n^2 - 1, {n, 300000}], Table[3 n^3 - 1, {n, 100000}]]
CROSSREFS
Intersection of A056220 and A345701.
Sequence in context: A187434 A046020 A108821 * A035885 A114827 A334896
KEYWORD
sign,easy
AUTHOR
Tanya Khovanova, Jun 24 2021
STATUS
approved