cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A038482 Sums of 3 distinct powers of 7.

Original entry on oeis.org

57, 351, 393, 399, 2409, 2451, 2457, 2745, 2751, 2793, 16815, 16857, 16863, 17151, 17157, 17199, 19209, 19215, 19257, 19551, 117657, 117699, 117705, 117993, 117999, 118041, 120051, 120057, 120099, 120393, 134457, 134463, 134505, 134799, 136857, 823551, 823593
Offset: 1

Views

Author

Keywords

Crossrefs

Base-7 interpretation of A038445.

Programs

  • Mathematica
    Union[Total/@Subsets[7^Range[0,10],{3}]] (* Harvey P. Dale, May 06 2014 *)
  • Python
    from math import isqrt, comb
    from sympy import integer_nthroot
    def A038482(n): return 7**((r:=n-1-comb((m:=integer_nthroot(6*n,3)[0])+(t:=(n>comb(m+2,3)))+1,3))-comb((k:=isqrt(b:=r+1<<1))+(b>k*(k+1)),2))+7**((a:=isqrt(s:=n-comb(m-(t^1)+2,3)<<1))+((s<<2)>(a<<2)*(a+1)+1))+7**(m+t+1) # Chai Wah Wu, Apr 05 2025

Extensions

Offset corrected by Amiram Eldar, Jul 14 2022
Showing 1-1 of 1 results.